cli

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 1

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 DownloadCommand

type DownloadCommand struct {
	// OutFile is the path to the download output file.
	OutFile string
}

DownloadCommand is the command line data structure for the download command.

func (*DownloadCommand) Run

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

Run downloads files with given paths.

type FindUserProfileUserProfileCommand added in v1.1.2

type FindUserProfileUserProfileCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

FindUserProfileUserProfileCommand is the command line data structure for the FindUserProfile action of userProfile

func (*FindUserProfileUserProfileCommand) RegisterFlags added in v1.1.2

func (cmd *FindUserProfileUserProfileCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*FindUserProfileUserProfileCommand) Run added in v1.1.2

Run makes the HTTP request corresponding to the FindUserProfileUserProfileCommand command.

type GetMyProfileUserProfileCommand

type GetMyProfileUserProfileCommand struct {
	PrettyPrint bool
}

GetMyProfileUserProfileCommand is the command line data structure for the GetMyProfile action of userProfile

func (*GetMyProfileUserProfileCommand) RegisterFlags

func (cmd *GetMyProfileUserProfileCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*GetMyProfileUserProfileCommand) Run

Run makes the HTTP request corresponding to the GetMyProfileUserProfileCommand command.

type GetUserProfileUserProfileCommand

type GetUserProfileUserProfileCommand struct {
	// The user ID
	UserID      string
	PrettyPrint bool
}

GetUserProfileUserProfileCommand is the command line data structure for the GetUserProfile action of userProfile

func (*GetUserProfileUserProfileCommand) RegisterFlags

func (cmd *GetUserProfileUserProfileCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*GetUserProfileUserProfileCommand) Run

Run makes the HTTP request corresponding to the GetUserProfileUserProfileCommand command.

type UpdateMyProfileUserProfileCommand

type UpdateMyProfileUserProfileCommand struct {
	Payload     string
	ContentType string
	PrettyPrint bool
}

UpdateMyProfileUserProfileCommand is the command line data structure for the UpdateMyProfile action of userProfile

func (*UpdateMyProfileUserProfileCommand) RegisterFlags

func (cmd *UpdateMyProfileUserProfileCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateMyProfileUserProfileCommand) Run

Run makes the HTTP request corresponding to the UpdateMyProfileUserProfileCommand command.

type UpdateUserProfileUserProfileCommand

type UpdateUserProfileUserProfileCommand struct {
	Payload     string
	ContentType string
	// User ID
	UserID      string
	PrettyPrint bool
}

UpdateUserProfileUserProfileCommand is the command line data structure for the UpdateUserProfile action of userProfile

func (*UpdateUserProfileUserProfileCommand) RegisterFlags

func (cmd *UpdateUserProfileUserProfileCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*UpdateUserProfileUserProfileCommand) Run

Run makes the HTTP request corresponding to the UpdateUserProfileUserProfileCommand command.

Jump to

Keyboard shortcuts

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