Documentation
¶
Index ¶
- type AtTimeNotSupportedError
- type Command
- func (c *Command) Args() command.PositionalArgs
- func (c *Command) DefaultOutputType() command.OutputType
- func (c *Command) Examples() []string
- func (c *Command) Init() error
- func (c *Command) Long() string
- func (c *Command) PreRun(cmd *cobra.Command, args []string) cenclierrors.CencliError
- func (c *Command) RenderShort() cenclierrors.CencliError
- func (c *Command) RenderTemplate() cenclierrors.CencliError
- func (c *Command) Run(cmd *cobra.Command, args []string) cenclierrors.CencliError
- func (c *Command) Short() string
- func (c *Command) SupportedOutputTypes() []command.OutputType
- func (c *Command) SupportsStreaming() bool
- func (*Command) Tapes(recorder *tape.Recorder) []tape.Tape
- func (c *Command) Use() string
- type UnsupportedAssetTypeError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtTimeNotSupportedError ¶
type AtTimeNotSupportedError interface {
cenclierrors.CencliError
}
func NewAtTimeNotSupportedError ¶
func NewAtTimeNotSupportedError(assetType assets.AssetType) AtTimeNotSupportedError
type Command ¶
type Command struct {
*command.BaseCommand
// contains filtered or unexported fields
}
func NewViewCommand ¶
func (*Command) Args ¶
func (c *Command) Args() command.PositionalArgs
func (*Command) DefaultOutputType ¶ added in v0.1.0
func (c *Command) DefaultOutputType() command.OutputType
func (*Command) PreRun ¶
func (c *Command) PreRun(cmd *cobra.Command, args []string) cenclierrors.CencliError
func (*Command) RenderShort ¶ added in v0.1.0
func (c *Command) RenderShort() cenclierrors.CencliError
func (*Command) RenderTemplate ¶ added in v0.1.0
func (c *Command) RenderTemplate() cenclierrors.CencliError
RenderTemplate renders asset results using a handlebars template.
func (*Command) Run ¶
func (c *Command) Run(cmd *cobra.Command, args []string) cenclierrors.CencliError
func (*Command) SupportedOutputTypes ¶ added in v0.1.0
func (c *Command) SupportedOutputTypes() []command.OutputType
func (*Command) SupportsStreaming ¶ added in v0.1.0
type UnsupportedAssetTypeError ¶
type UnsupportedAssetTypeError interface {
cenclierrors.CencliError
}
UnsupportedAssetTypeError indicates that a provided asset type is not supported by the view command.
func NewUnsupportedAssetTypeError ¶
func NewUnsupportedAssetTypeError(assetType assets.AssetType, reason string) UnsupportedAssetTypeError
Click to show internal directories.
Click to hide internal directories.