Documentation
¶
Index ¶
- type RootCommand
- func (c *RootCommand) Cleanup()
- func (c *RootCommand) CreateHash(h string) (hash.Hash, error)
- func (c *RootCommand) HashAndStoreFromSingleArg(fl *pflag.FlagSet) (hash.Hash, cas.Store)
- func (c *RootCommand) HasherDescription() string
- func (c *RootCommand) RegisterFlags(fl *pflag.FlagSet)
- func (c *RootCommand) Run(fl *pflag.FlagSet)
- func (c *RootCommand) Spec() cli.CommandSpec
- func (c *RootCommand) Store() (cas.Store, error)
- func (c *RootCommand) Subcommands() []cli.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RootCommand ¶
type RootCommand struct {
Commands []cli.Command
Hasher hash.Hasher
CacheDir string
Local bool
FetchTimeout time.Duration
// contains filtered or unexported fields
}
func NewRootCommand ¶
func NewRootCommand() *RootCommand
func (*RootCommand) Cleanup ¶
func (c *RootCommand) Cleanup()
func (*RootCommand) CreateHash ¶
func (c *RootCommand) CreateHash(h string) (hash.Hash, error)
func (*RootCommand) HashAndStoreFromSingleArg ¶
func (*RootCommand) HasherDescription ¶
func (c *RootCommand) HasherDescription() string
func (*RootCommand) RegisterFlags ¶
func (c *RootCommand) RegisterFlags(fl *pflag.FlagSet)
func (*RootCommand) Run ¶
func (c *RootCommand) Run(fl *pflag.FlagSet)
func (*RootCommand) Spec ¶
func (c *RootCommand) Spec() cli.CommandSpec
func (*RootCommand) Subcommands ¶
func (c *RootCommand) Subcommands() []cli.Command
Click to show internal directories.
Click to hide internal directories.