-
Notifications
You must be signed in to change notification settings - Fork 928
feat: Add templates to create working release #422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
94e5069
Add templates
kylecarbs 688ab17
Move API structs to codersdk
kylecarbs 8cee1fb
Back to green tests!
kylecarbs 11e1d99
It all works, but now with tea! 🧋
kylecarbs b23a58c
It works!
kylecarbs c01b8f7
Add cancellation to provisionerd
kylecarbs 99c8eb1
Tests pass!
kylecarbs 6b4c8b5
Add deletion of workspaces and projects
kylecarbs 21c3d1c
Fix agent lock
kylecarbs 8d24602
Add clog
kylecarbs cfffbe5
Fix linting errors
kylecarbs 926e59e
Remove unused CLI tests
kylecarbs 1c9e124
Rename daemon to start
kylecarbs fdc17ee
Merge branch 'main' into workflow
kylecarbs 2b9a849
Fix leaking command
kylecarbs f895d1f
Fix promptui test
kylecarbs 72bc74c
Update agent connection frequency
kylecarbs e79f9b0
Skip login tests on Windows
kylecarbs 8165782
Merge branch 'main' into workflow
kylecarbs 55a0160
Increase tunnel connect timeout
kylecarbs 6e53335
Merge branch 'main' into workflow
kylecarbs 6ac95bf
Fix templater
kylecarbs b4c2aed
Merge branch 'workflow' of github.com:coder/coder into workflow
kylecarbs 369c4a0
Merge branch 'workflow' of github.com:coder/coder into workflow
kylecarbs 1402a08
Merge branch 'workflow' of github.com:coder/coder into workflow
kylecarbs c7dfb51
Lower test requirements
kylecarbs 1005371
Fix embed
kylecarbs 5677f22
Disable promptui tests for Windows
kylecarbs 52e4d99
Fix write newline
kylecarbs 82bceec
Fix PTY write newline
kylecarbs df885f5
Merge branch 'main' into workflow
kylecarbs 749d1ac
Fix CloseReader
kylecarbs 8bc5c1a
Fix compilation on Windows
kylecarbs 53d489e
Fix linting error
kylecarbs c8ae865
Merge branch 'main' into workflow
kylecarbs def36fa
Remove bubbletea
kylecarbs fc8c950
Cleanup readwriter
kylecarbs 2cc902f
Use embedded templates instead of serving over API
kylecarbs 8146d00
Move templates to examples
kylecarbs 5190438
Improve workspace create flow
kylecarbs fe925a3
Fix Windows build
kylecarbs 4fa89d4
Fix tests
kylecarbs c2a7119
Fix linting errors
kylecarbs 091fead
Merge branch 'main' into workflow
kylecarbs f482a85
Fix untar with extracting max size
kylecarbs 9e29a51
Fix newline char
kylecarbs aa267e6
Merge branch 'main' into workflow
kylecarbs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,8 @@ site/**/*.typegen.ts | |
# Build | ||
dist/ | ||
site/out/ | ||
|
||
*.tfstate | ||
*.tfplan | ||
*.lock.hcl | ||
.terraform/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
package usershell | ||
|
||
import "os/exec" | ||
|
||
// Get returns the command prompt binary name. | ||
func Get(username string) (string, error) { | ||
_, err := exec.LookPath("powershell.exe") | ||
if err == nil { | ||
return "powershell.exe", nil | ||
} | ||
return "cmd.exe", nil | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package cliui | ||
|
||
import ( | ||
"github.com/charmbracelet/charm/ui/common" | ||
"github.com/charmbracelet/lipgloss" | ||
"golang.org/x/xerrors" | ||
) | ||
|
||
var ( | ||
Canceled = xerrors.New("canceled") | ||
|
||
defaultStyles = common.DefaultStyles() | ||
) | ||
|
||
// ValidateNotEmpty is a helper function to disallow empty inputs! | ||
func ValidateNotEmpty(s string) error { | ||
if s == "" { | ||
return xerrors.New("Must be provided!") | ||
} | ||
return nil | ||
} | ||
|
||
// Styles compose visual elements of the UI! | ||
var Styles = struct { | ||
Bold, | ||
Code, | ||
Field, | ||
Keyword, | ||
Paragraph, | ||
Placeholder, | ||
Prompt, | ||
FocusedPrompt, | ||
Fuschia, | ||
Logo, | ||
Warn, | ||
Wrap lipgloss.Style | ||
}{ | ||
Bold: lipgloss.NewStyle().Bold(true), | ||
Code: defaultStyles.Code, | ||
Field: defaultStyles.Code.Copy().Foreground(lipgloss.AdaptiveColor{Light: "#000000", Dark: "#FFFFFF"}), | ||
Keyword: defaultStyles.Keyword, | ||
Paragraph: defaultStyles.Paragraph, | ||
Placeholder: lipgloss.NewStyle().Foreground(lipgloss.Color("240")), | ||
Prompt: defaultStyles.Prompt.Foreground(lipgloss.AdaptiveColor{Light: "#9B9B9B", Dark: "#5C5C5C"}), | ||
FocusedPrompt: defaultStyles.FocusedPrompt.Foreground(lipgloss.Color("#651fff")), | ||
Fuschia: defaultStyles.SelectedMenuItem.Copy(), | ||
Logo: defaultStyles.Logo.SetString("Coder"), | ||
Warn: lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#04B575", Dark: "#ECFD65"}), | ||
Wrap: defaultStyles.Wrap, | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call 👍