Files
coder/cli/parameters.go
T

28 lines
731 B
Go
Raw Normal View History

package cli
import (
2023-03-23 17:42:20 -05:00
"github.com/coder/coder/cli/clibase"
)
2023-03-23 17:42:20 -05:00
func (r *RootCmd) parameters() *clibase.Cmd {
cmd := &clibase.Cmd{
Short: "List parameters for a given scope",
2023-03-23 17:42:20 -05:00
Long: formatExamples(
example{
Command: "coder parameters list workspace my-workspace",
},
),
Use: "parameters",
// Currently hidden as this shows parameter values, not parameter
// schemes. Until we have a good way to distinguish the two, it's better
// not to add confusion or lock ourselves into a certain api.
// This cmd is still valuable debugging tool for devs to avoid
// constructing curl requests.
Hidden: true,
Aliases: []string{"params"},
2023-03-23 17:42:20 -05:00
Children: []*clibase.Cmd{
r.parameterList(),
2022-10-06 16:15:28 -04:00
},
}
return cmd
}