{"modulePath":"github.com/Microkubes/authorization-server","version":"v1.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Functions\n\n```go\nfunc RegisterCommands(app *cobra.Command, c *client.Client)\n```\nRegisterCommands registers the resource action CLI commands.\n\n## Types\n\n```go\ntype AuthorizeOauth2ProviderCommand struct {\n\t// The client identifier\n\tClientID string\n\t// Redirection endpoint\n\tRedirectURI string\n\t// Value MUST be set to \"code\"\n\tResponseType string\n\t// The scope of the access request\n\tScope string\n\t// An opaque value used by the client to maintain state between the request and callback\n\tState       string\n\tPrettyPrint bool\n}\n```\nAuthorizeOauth2ProviderCommand is the command line data structure for the authorize action of oauth2\\_provider\n\n```go\nfunc (cmd *AuthorizeOauth2ProviderCommand) RegisterFlags(cc *cobra.Command, c *client.Client)\n```\nRegisterFlags registers the command flags with the command line.\n\n```go\nfunc (cmd *AuthorizeOauth2ProviderCommand) Run(c *client.Client, args []string) error\n```\nRun makes the HTTP request corresponding to the AuthorizeOauth2ProviderCommand command.\n\n```go\ntype ConfirmAuthorizationAuthuiCommand struct {\n\t// Is the authorization confirmed.\n\tConfirmed   string\n\tPrettyPrint bool\n}\n```\nConfirmAuthorizationAuthuiCommand is the command line data structure for the confirmAuthorization action of authUI\n\n```go\nfunc (cmd *ConfirmAuthorizationAuthuiCommand) RegisterFlags(cc *cobra.Command, c *client.Client)\n```\nRegisterFlags registers the command flags with the command line.\n\n```go\nfunc (cmd *ConfirmAuthorizationAuthuiCommand) Run(c *client.Client, args []string) error\n```\nRun makes the HTTP request corresponding to the ConfirmAuthorizationAuthuiCommand command.\n\n```go\ntype DownloadCommand struct {\n\t// OutFile is the path to the download output file.\n\tOutFile string\n}\n```\nDownloadCommand is the command line data structure for the download command.\n\n```go\nfunc (cmd *DownloadCommand) Run(c *client.Client, args []string) error\n```\nRun downloads files with given paths.\n\n```go\ntype GetTokenOauth2ProviderCommand struct {\n\tPayload     string\n\tContentType string\n\tPrettyPrint bool\n}\n```\nGetTokenOauth2ProviderCommand is the command line data structure for the get\\_token action of oauth2\\_provider\n\n```go\nfunc (cmd *GetTokenOauth2ProviderCommand) RegisterFlags(cc *cobra.Command, c *client.Client)\n```\nRegisterFlags registers the command flags with the command line.\n\n```go\nfunc (cmd *GetTokenOauth2ProviderCommand) Run(c *client.Client, args []string) error\n```\nRun makes the HTTP request corresponding to the GetTokenOauth2ProviderCommand command.\n\n```go\ntype PromptAuthorizationAuthuiCommand struct {\n\tPrettyPrint bool\n}\n```\nPromptAuthorizationAuthuiCommand is the command line data structure for the promptAuthorization action of authUI\n\n```go\nfunc (cmd *PromptAuthorizationAuthuiCommand) RegisterFlags(cc *cobra.Command, c *client.Client)\n```\nRegisterFlags registers the command flags with the command line.\n\n```go\nfunc (cmd *PromptAuthorizationAuthuiCommand) Run(c *client.Client, args []string) error\n```\nRun makes the HTTP request corresponding to the PromptAuthorizationAuthuiCommand command.\n\n```go\ntype ShowLoginLoginCommand struct {\n\tPrettyPrint bool\n}\n```\nShowLoginLoginCommand is the command line data structure for the showLogin action of login\n\n```go\nfunc (cmd *ShowLoginLoginCommand) RegisterFlags(cc *cobra.Command, c *client.Client)\n```\nRegisterFlags registers the command flags with the command line.\n\n```go\nfunc (cmd *ShowLoginLoginCommand) Run(c *client.Client, args []string) error\n```\nRun makes the HTTP request corresponding to the ShowLoginLoginCommand command.\n\n","path":"github.com/Microkubes/authorization-server/tool/cli","name":"cli","synopsis":"","isRedistributable":true}
