tags

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TagsAllCmd

type TagsAllCmd struct {
	Json bool `name:"json" help:"Output as JSON" default:"false" type:"bool"`
}

TagsAllCmd is the command to get all tags

func (*TagsAllCmd) Run

func (cmd *TagsAllCmd) Run(ctx *clictx.Context) error

Run runs the command

type TagsCmd

type TagsCmd struct {
	All    TagsAllCmd    `cmd:"" help:"Returns all tags."`
	Delete TagsDeleteCmd `cmd:"" help:"Deletes a tag."`
	Rename TagsRenameCmd `cmd:"" help:"Renames a tag."`
}

type TagsDeleteCmd

type TagsDeleteCmd struct {
	Tag  string `name:"tag" required:"" help:"Tag to delete" type:"string"`
	Json bool   `name:"json" help:"Output as JSON" default:"false" type:"bool"`
}

TagsDeleteCmd is the command to delete a tag

func (*TagsDeleteCmd) Run

func (cmd *TagsDeleteCmd) Run(ctx *clictx.Context) error

Run runs the command

type TagsRenameCmd

type TagsRenameCmd struct {
	Old  string `name:"old" required:"" help:"Old tag to name" type:"string"`
	New  string `name:"new" required:"" help:"New tag name" type:"string"`
	Json bool   `name:"json" help:"Output as JSON" default:"false" type:"bool"`
}

TagsRenameCmd is the command to rename a tag

func (*TagsRenameCmd) Run

func (cmd *TagsRenameCmd) Run(ctx *clictx.Context) error

Run runs the command

Jump to

Keyboard shortcuts

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