mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: Add "coder" CLI (#221)
* feat: Add "coder" CLI * Add CLI test for login * Add "bin/coder" target to Makefile * Update promptui to fix race * Fix error scope * Don't run CLI tests on Windows * Fix requested changes
This commit is contained in:
30
cli/projects.go
Normal file
30
cli/projects.go
Normal file
@ -0,0 +1,30 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"github.com/fatih/color"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
func projects() *cobra.Command {
|
||||
cmd := &cobra.Command{
|
||||
Use: "projects",
|
||||
Long: "Testing something",
|
||||
Example: `
|
||||
- Create a project for developers to create workspaces
|
||||
|
||||
` + color.New(color.FgHiMagenta).Sprint("$ coder projects create") + `
|
||||
|
||||
- Make changes to your project, and plan the changes
|
||||
|
||||
` + color.New(color.FgHiMagenta).Sprint("$ coder projects plan <name>") + `
|
||||
|
||||
- Update the project. Your developers can update their workspaces
|
||||
|
||||
` + color.New(color.FgHiMagenta).Sprint("$ coder projects update <name>"),
|
||||
}
|
||||
cmd.AddCommand(projectCreate())
|
||||
cmd.AddCommand(projectPlan())
|
||||
cmd.AddCommand(projectUpdate())
|
||||
|
||||
return cmd
|
||||
}
|
Reference in New Issue
Block a user