mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
* 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
31 lines
731 B
Go
31 lines
731 B
Go
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
|
|
}
|