Documentation ¶
Index ¶
- Variables
- func AGPL() []*cobra.Command
- func ContextWithLogger(ctx context.Context, l slog.Logger) context.Context
- func Core() []*cobra.Command
- func CreateClient(cmd *cobra.Command) (*codersdk.Client, error)
- func CurrentOrganization(cmd *cobra.Command, client *codersdk.Client) (codersdk.Organization, error)
- func FormatCobraError(err error, cmd *cobra.Command) string
- func LoggerFromContext(ctx context.Context) (slog.Logger, bool)
- func ParseProvisionerTags(rawTags []string) (map[string]string, error)
- func ReadGitAuthProvidersFromEnv(environ []string) ([]codersdk.GitAuthConfig, error)
- func Root(subcommands []*cobra.Command) *cobra.Command
- func Server(newAPI func(context.Context, *coderd.Options) (*coderd.API, io.Closer, error)) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Caret = cliui.Styles.Prompt.String()
)
Functions ¶
func ContextWithLogger ¶ added in v0.18.0
func CreateClient ¶ added in v0.8.7
CreateClient returns a new client from the command context. It reads from global configuration files if flags are not set.
func CurrentOrganization ¶ added in v0.12.0
func CurrentOrganization(cmd *cobra.Command, client *codersdk.Client) (codersdk.Organization, error)
CurrentOrganization returns the currently active organization for the authenticated user.
func FormatCobraError ¶ added in v0.6.0
FormatCobraError colorizes and adds "--help" docs to cobra commands.
func LoggerFromContext ¶ added in v0.18.0
func ParseProvisionerTags ¶ added in v0.12.8
func ReadGitAuthProvidersFromEnv ¶ added in v0.19.0
func ReadGitAuthProvidersFromEnv(environ []string) ([]codersdk.GitAuthConfig, error)
ReadGitAuthProvidersFromEnv is provided for compatibility purposes with the viper CLI. DEPRECATED
Types ¶
This section is empty.
Source Files ¶
- agent.go
- configssh.go
- constants.go
- create.go
- delete.go
- dotfiles.go
- gitaskpass.go
- gitssh.go
- list.go
- login.go
- logout.go
- parameter.go
- parameters.go
- parameterslist.go
- ping.go
- portforward.go
- publickey.go
- rename.go
- resetpassword.go
- restart.go
- root.go
- scaletest.go
- schedule.go
- server.go
- server_createadminuser.go
- show.go
- signal_unix.go
- speedtest.go
- ssh.go
- ssh_other.go
- start.go
- state.go
- stop.go
- templatecreate.go
- templatedelete.go
- templateedit.go
- templateinit.go
- templatelist.go
- templatepull.go
- templatepush.go
- templates.go
- templatevariables.go
- templateversions.go
- tokens.go
- update.go
- usage.go
- usercreate.go
- userlist.go
- users.go
- userstatus.go
- util.go
- vscodessh.go
Directories ¶
Path | Synopsis |
---|---|
Package clibase offers an all-in-one solution for a highly configurable CLI application.
|
Package clibase offers an all-in-one solution for a highly configurable CLI application. |
Package cliflag extends flagset with environment variable defaults.
|
Package cliflag extends flagset with environment variable defaults. |
Click to show internal directories.
Click to hide internal directories.