Documentation
¶
Overview ¶
Package cmd has the commands which sign in to a server, in a browser, with OAuth, and keep the token, which the other commands send, with ClientEndpoint, and sign out.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientEndpoint ¶ added in v0.0.15
ClientEndpoint returns the endpoint of the command's HTTP flags, and its client options, as the command's ClientEndpoint does, with the token which signing in kept for the endpoint, when it hasn't expired
Types ¶
type AuthCommands ¶
type AuthCommands struct {
Login LoginCmd `` /* 127-byte string literal not displayed */
Session SessionCmd `cmd:"" name:"session" help:"Show who's signed in, with the kept token." group:"AUTH"`
Logout LogoutCmd `cmd:"" name:"logout" help:"Sign out, ending the session, and forget the token." group:"AUTH"`
}
AuthCommands sign in to the server, show the session, and sign out
type LoginCmd ¶ added in v0.0.15
type LoginCmd struct {
Scopes []string `name:"scope" help:"Scopes to ask for. Without them, they're all the session's. Can be specified more than once."`
NoBrowser bool `name:"no-browser" help:"Print the URL to sign in at, rather than opening it in a browser."`
Timeout time.Duration `name:"wait" default:"5m" help:"How long to wait for signing in."`
}
type SessionCmd ¶ added in v0.0.15
type SessionCmd struct{}