Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Login = cli.Command{
Name: "login",
Usage: "Log in to Common Fate",
Flags: []cli.Flag{
&cli.BoolFlag{Name: "lazy", Usage: "the lazy flag lets granted decide whether a new login flow should be initiated based on the token expiry"},
},
Action: defaultLoginFlow.LoginAction,
}
View Source
var Logout = cli.Command{ Name: "logout", Usage: "Log out of Common Fate", Action: func(c *cli.Context) error { cfg, err := config.Load() if err != nil { return err } ts := tokenstore.New(cfg.CurrentContext) err = ts.Clear() if err != nil { return err } clio.Success("logged out") return nil }, }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.