cli

package
v0.0.0-...-2b3100b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

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.

func (*BootstrapUICommand) Run

func (cmd *BootstrapUICommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the BootstrapUICommand command.

type CallbackAuthCommand

type CallbackAuthCommand struct {
	Provider    string
	PrettyPrint bool
}

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.

func (*CallbackAuthCommand) Run

func (cmd *CallbackAuthCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CallbackAuthCommand command.

type CreateProposalCommand

type CreateProposalCommand struct {
	Payload     string
	UserID      int
	PrettyPrint bool
}

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.

func (*CreateProposalCommand) Run

func (cmd *CreateProposalCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateProposalCommand command.

type CreateReviewCommand

type CreateReviewCommand struct {
	Payload     string
	ProposalID  int
	UserID      int
	PrettyPrint bool
}

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.

func (*CreateReviewCommand) Run

func (cmd *CreateReviewCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateReviewCommand command.

type CreateUserCommand

type CreateUserCommand struct {
	Payload     string
	PrettyPrint bool
}

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.

func (*CreateUserCommand) Run

func (cmd *CreateUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the CreateUserCommand command.

type DeleteProposalCommand

type DeleteProposalCommand struct {
	// Proposal ID
	ProposalID  int
	UserID      int
	PrettyPrint bool
}

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.

func (*DeleteProposalCommand) Run

func (cmd *DeleteProposalCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteProposalCommand command.

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.

func (*DeleteReviewCommand) Run

func (cmd *DeleteReviewCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteReviewCommand command.

type DeleteUserCommand

type DeleteUserCommand struct {
	// User ID
	UserID      int
	PrettyPrint bool
}

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.

func (*DeleteUserCommand) Run

func (cmd *DeleteUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the DeleteUserCommand command.

type ListProposalCommand

type ListProposalCommand struct {
	UserID      int
	PrettyPrint bool
}

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.

func (*ListProposalCommand) Run

func (cmd *ListProposalCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListProposalCommand command.

type ListReviewCommand

type ListReviewCommand struct {
	ProposalID  int
	UserID      int
	PrettyPrint bool
}

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.

func (*ListReviewCommand) Run

func (cmd *ListReviewCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListReviewCommand command.

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.

func (*ListUserCommand) Run

func (cmd *ListUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ListUserCommand command.

type OauthAuthCommand

type OauthAuthCommand struct {
	Provider    string
	PrettyPrint bool
}

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.

func (*OauthAuthCommand) Run

func (cmd *OauthAuthCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the OauthAuthCommand command.

type RefreshAuthCommand

type RefreshAuthCommand struct {
	Payload     string
	PrettyPrint bool
}

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.

func (*RefreshAuthCommand) Run

func (cmd *RefreshAuthCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the RefreshAuthCommand command.

type ShowProposalCommand

type ShowProposalCommand struct {
	ProposalID  int
	UserID      int
	PrettyPrint bool
}

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.

func (*ShowProposalCommand) Run

func (cmd *ShowProposalCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowProposalCommand command.

type ShowReviewCommand

type ShowReviewCommand struct {
	ProposalID  int
	ReviewID    int
	UserID      int
	PrettyPrint bool
}

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.

func (*ShowReviewCommand) Run

func (cmd *ShowReviewCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowReviewCommand command.

type ShowUserCommand

type ShowUserCommand struct {
	UserID      int
	PrettyPrint bool
}

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.

func (*ShowUserCommand) Run

func (cmd *ShowUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the ShowUserCommand command.

type TokenAuthCommand

type TokenAuthCommand struct {
	Payload     string
	PrettyPrint bool
}

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.

func (*TokenAuthCommand) Run

func (cmd *TokenAuthCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the TokenAuthCommand command.

type UpdateProposalCommand

type UpdateProposalCommand struct {
	Payload     string
	ProposalID  int
	UserID      int
	PrettyPrint bool
}

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.

func (*UpdateProposalCommand) Run

func (cmd *UpdateProposalCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateProposalCommand command.

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.

func (*UpdateReviewCommand) Run

func (cmd *UpdateReviewCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateReviewCommand command.

type UpdateUserCommand

type UpdateUserCommand struct {
	Payload     string
	UserID      int
	PrettyPrint bool
}

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.

func (*UpdateUserCommand) Run

func (cmd *UpdateUserCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the UpdateUserCommand command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL