Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPathsCommand ¶ added in v1.0.0
type AddPathsCommand struct {
// contains filtered or unexported fields
}
AddPathsCommand adds one or multiple paths to a tag.
func NewAddPathsCommand ¶ added in v1.0.0
func NewAddPathsCommand( output io.Writer, config internal.Config, args []string, ) *AddPathsCommand
NewAddPathsCommand creates a new AddPathsCommand.
func (AddPathsCommand) Execute ¶ added in v1.0.0
func (c AddPathsCommand) Execute() error
type AnyCommand ¶
type AnyCommand struct {
// contains filtered or unexported fields
}
AnyCommand is the "do-it-all" command, which allows to execute a user-supplied command for all paths of the given tags. Paths are in sorted order, but are sorted tag agnostic.
func NewAnyCommand ¶ added in v0.0.2
func NewAnyCommand( output io.Writer, config internal.Config, forTags []string, args []string, parallel bool, ) *AnyCommand
NewAnyCommand creates a new AnyCommand.
func (AnyCommand) Execute ¶
func (c AnyCommand) Execute() error
type Command ¶
type Command interface { // Execute executes the command, and returns an error if any occurred. // Note, errors are always assumed fatal - non-technical problems don't warrant errors. Execute() error }
Command is an abstraction of an executable command
type HelpCommand ¶
type HelpCommand struct {
// contains filtered or unexported fields
}
HelpCommand prints out the CLI help.
func NewHelpCommand ¶ added in v0.0.2
func NewHelpCommand( output io.Writer, ) *HelpCommand
NewHelpCommand creates a new HelpCommand.
func (HelpCommand) Execute ¶
func (c HelpCommand) Execute() error
type ListPathsCommand ¶
type ListPathsCommand struct {
// contains filtered or unexported fields
}
ListPathsCommand lists all paths of the given tags, in sorted order (but order is tag agnostic).
func NewListPathsCommand ¶ added in v0.0.2
func NewListPathsCommand( output io.Writer, config internal.Config, forTags []string, ) *ListPathsCommand
NewListPathsCommand creates a new ListPathsCommand.
func (ListPathsCommand) Execute ¶
func (c ListPathsCommand) Execute() error
type ListPathsGroupedCommand ¶
type ListPathsGroupedCommand struct {
// contains filtered or unexported fields
}
ListPathsGroupedCommand lists all paths, sorted, and grouped by their respective tags (which are also sorted).
func NewListPathsGroupedCommand ¶ added in v0.0.2
func NewListPathsGroupedCommand( output io.Writer, config internal.Config, forTags []string, ) *ListPathsGroupedCommand
NewListPathsGroupedCommand creates a new ListPathsGroupedCommand.
func (ListPathsGroupedCommand) Execute ¶
func (c ListPathsGroupedCommand) Execute() error
type ListTagsCommand ¶
type ListTagsCommand struct {
// contains filtered or unexported fields
}
ListTagsCommand lists all tags in sorted order.
func NewListTagsCommand ¶ added in v0.0.2
func NewListTagsCommand( output io.Writer, config internal.Config, ) *ListTagsCommand
NewListTagsCommand creates a new ListTagsCommand.
func (ListTagsCommand) Execute ¶
func (c ListTagsCommand) Execute() error
type MigrateCommand ¶
type MigrateCommand struct {
// contains filtered or unexported fields
}
MigrateCommand reads an existing gr config, and persists an migrated copy as a new ew config.
func NewMigrateCommand ¶ added in v0.0.2
func NewMigrateCommand( output io.Writer, convertToYaml bool, ) *MigrateCommand
NewMigrateCommand creates a new MigrateCommand.
func (MigrateCommand) Execute ¶
func (c MigrateCommand) Execute() error
type RmPathsCommand ¶ added in v1.0.0
type RmPathsCommand struct {
// contains filtered or unexported fields
}
RmPathsCommand removes one or multiple paths from a tag.
func NewRmPathsCommand ¶ added in v1.0.0
NewRmPathsCommand creates a new RmPathsCommand.
func (RmPathsCommand) Execute ¶ added in v1.0.0
func (c RmPathsCommand) Execute() error
type StatusCommand ¶
type StatusCommand struct {
// contains filtered or unexported fields
}
StatusCommand prints out an opinionated git short-summary for all paths of the given tags. Paths are in sorted order, but are sorted tag agnostic.
func NewStatusCommand ¶ added in v0.0.2
NewStatusCommand creates a new StatusCommand.
func (StatusCommand) Execute ¶
func (c StatusCommand) Execute() error
type VersionCommand ¶ added in v1.0.0
type VersionCommand struct {
// contains filtered or unexported fields
}
VersionCommand prints out the CLI help.
func NewVersionCommand ¶ added in v1.0.0
func NewVersionCommand( output io.Writer, ) *VersionCommand
NewVersionCommand creates a new VersionCommand.
func (VersionCommand) Execute ¶ added in v1.0.0
func (c VersionCommand) Execute() error