Documentation
¶
Index ¶
- Variables
- func ContextWithLogger(ctx context.Context, l slog.Logger) context.Context
- func CurrentOrganization(inv *clibase.Invocation, client *codersdk.Client) (codersdk.Organization, error)
- func LoggerFromContext(ctx context.Context) (slog.Logger, bool)
- func ParseProvisionerTags(rawTags []string) (map[string]string, error)
- func ReadGitAuthProvidersFromEnv(environ []string) ([]codersdk.GitAuthConfig, error)
- type RootCmd
- func (r *RootCmd) AGPL() []*clibase.Cmd
- func (r *RootCmd) Command(subcommands []*clibase.Cmd) (*clibase.Cmd, error)
- func (r *RootCmd) Core() []*clibase.Cmd
- func (r *RootCmd) InitClient(client *codersdk.Client) clibase.MiddlewareFunc
- func (r *RootCmd) RunMain(subcommands []*clibase.Cmd)
- func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.API, io.Closer, error)) *clibase.Cmd
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Caret = cliui.Styles.Prompt.String()
)
Functions ¶
func ContextWithLogger ¶ added in v0.18.0
func CurrentOrganization ¶ added in v0.12.0
func CurrentOrganization(inv *clibase.Invocation, client *codersdk.Client) (codersdk.Organization, error)
CurrentOrganization returns the currently active organization for the authenticated user.
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 ¶
type RootCmd ¶ added in v0.21.0
type RootCmd struct {
// contains filtered or unexported fields
}
RootCmd contains parameters and helpers useful to all commands.
func (*RootCmd) InitClient ¶ added in v0.21.0
func (r *RootCmd) InitClient(client *codersdk.Client) clibase.MiddlewareFunc
InitClient sets client to a new client. It reads from global configuration files if flags are not set.
Source Files
¶
- agent.go
- configssh.go
- constants.go
- create.go
- delete.go
- dotfiles.go
- gitaskpass.go
- gitssh.go
- help.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
- templateplan.go
- templatepull.go
- templatepush.go
- templates.go
- templatevariables.go
- templateversions.go
- tokens.go
- update.go
- usercreate.go
- userlist.go
- users.go
- userstatus.go
- util.go
- vscodessh.go
Click to show internal directories.
Click to hide internal directories.