Documentation ¶
Index ¶
- func RegisterCommands(app *cobra.Command, c *client.Client)
- type BootstrapUICommand
- type CallbackAuthCommand
- type CreateProposalCommand
- type CreateReviewCommand
- type CreateUserCommand
- type DeleteProposalCommand
- type DeleteReviewCommand
- type DeleteUserCommand
- type ListProposalCommand
- type ListReviewCommand
- type ListUserCommand
- type OauthAuthCommand
- type RefreshAuthCommand
- type ShowProposalCommand
- type ShowReviewCommand
- type ShowUserCommand
- type TokenAuthCommand
- type UpdateProposalCommand
- type UpdateReviewCommand
- type UpdateUserCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BootstrapUICommand ¶
type BootstrapUICommand struct {
PrettyPrint bool
}
BootstrapUICommand is the command line data structure for the bootstrap action of ui
func (*BootstrapUICommand) RegisterFlags ¶
func (cmd *BootstrapUICommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CallbackAuthCommand ¶
CallbackAuthCommand is the command line data structure for the callback action of auth
func (*CallbackAuthCommand) RegisterFlags ¶
func (cmd *CallbackAuthCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateProposalCommand ¶
CreateProposalCommand is the command line data structure for the create action of proposal
func (*CreateProposalCommand) RegisterFlags ¶
func (cmd *CreateProposalCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateReviewCommand ¶
CreateReviewCommand is the command line data structure for the create action of review
func (*CreateReviewCommand) RegisterFlags ¶
func (cmd *CreateReviewCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type CreateUserCommand ¶
CreateUserCommand is the command line data structure for the create action of user
func (*CreateUserCommand) RegisterFlags ¶
func (cmd *CreateUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteProposalCommand ¶
DeleteProposalCommand is the command line data structure for the delete action of proposal
func (*DeleteProposalCommand) RegisterFlags ¶
func (cmd *DeleteProposalCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteReviewCommand ¶
type DeleteReviewCommand struct { ProposalID int // Review ID ReviewID int UserID int PrettyPrint bool }
DeleteReviewCommand is the command line data structure for the delete action of review
func (*DeleteReviewCommand) RegisterFlags ¶
func (cmd *DeleteReviewCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type DeleteUserCommand ¶
DeleteUserCommand is the command line data structure for the delete action of user
func (*DeleteUserCommand) RegisterFlags ¶
func (cmd *DeleteUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListProposalCommand ¶
ListProposalCommand is the command line data structure for the list action of proposal
func (*ListProposalCommand) RegisterFlags ¶
func (cmd *ListProposalCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListReviewCommand ¶
ListReviewCommand is the command line data structure for the list action of review
func (*ListReviewCommand) RegisterFlags ¶
func (cmd *ListReviewCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ListUserCommand ¶
type ListUserCommand struct {
PrettyPrint bool
}
ListUserCommand is the command line data structure for the list action of user
func (*ListUserCommand) RegisterFlags ¶
func (cmd *ListUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type OauthAuthCommand ¶
OauthAuthCommand is the command line data structure for the oauth action of auth
func (*OauthAuthCommand) RegisterFlags ¶
func (cmd *OauthAuthCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type RefreshAuthCommand ¶
RefreshAuthCommand is the command line data structure for the refresh action of auth
func (*RefreshAuthCommand) RegisterFlags ¶
func (cmd *RefreshAuthCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowProposalCommand ¶
ShowProposalCommand is the command line data structure for the show action of proposal
func (*ShowProposalCommand) RegisterFlags ¶
func (cmd *ShowProposalCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowReviewCommand ¶
ShowReviewCommand is the command line data structure for the show action of review
func (*ShowReviewCommand) RegisterFlags ¶
func (cmd *ShowReviewCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type ShowUserCommand ¶
ShowUserCommand is the command line data structure for the show action of user
func (*ShowUserCommand) RegisterFlags ¶
func (cmd *ShowUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type TokenAuthCommand ¶
TokenAuthCommand is the command line data structure for the token action of auth
func (*TokenAuthCommand) RegisterFlags ¶
func (cmd *TokenAuthCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateProposalCommand ¶
UpdateProposalCommand is the command line data structure for the update action of proposal
func (*UpdateProposalCommand) RegisterFlags ¶
func (cmd *UpdateProposalCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateReviewCommand ¶
type UpdateReviewCommand struct { Payload string ProposalID int ReviewID int UserID int PrettyPrint bool }
UpdateReviewCommand is the command line data structure for the update action of review
func (*UpdateReviewCommand) RegisterFlags ¶
func (cmd *UpdateReviewCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.
type UpdateUserCommand ¶
UpdateUserCommand is the command line data structure for the update action of user
func (*UpdateUserCommand) RegisterFlags ¶
func (cmd *UpdateUserCommand) RegisterFlags(cc *cobra.Command, c *client.Client)
RegisterFlags registers the command flags with the command line.