command

package
v0.0.0-...-0132329 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarkCommand

type BookmarkCommand struct {
	// contains filtered or unexported fields
}

BookmarkCommand represents the bookmark command

func NewBookmarkCommand

func NewBookmarkCommand(fs afero.Fs, logger *slog.Logger, console *utils.Console) *BookmarkCommand

NewBookmarkCommand creates a new instance of the BookmarkCommand.

func (*BookmarkCommand) AddCommand

func (cmd *BookmarkCommand) AddCommand(value common.ICommand) *BookmarkCommand

AddCommand adds a new subcommand to the bookmark command.

func (*BookmarkCommand) Arguments

func (cmd *BookmarkCommand) Arguments() []cli.Argument

Arguments returns the command arguments.

func (*BookmarkCommand) Category

func (cmd *BookmarkCommand) Category() string

Category returns the category of the bookmark command.

func (*BookmarkCommand) Command

func (cmd *BookmarkCommand) Command() *cli.Command

Command returns the command of the bookmark command.

func (*BookmarkCommand) Description

func (cmd *BookmarkCommand) Description() string

Description returns the description of the bookmark command.

func (*BookmarkCommand) Flags

func (cmd *BookmarkCommand) Flags() []cli.Flag

Flags returns the flags of the bookmark command.

func (*BookmarkCommand) GetCommands

func (cmd *BookmarkCommand) GetCommands() []common.ICommand

GetCommands returns the subcommands of the bookmark command.

func (*BookmarkCommand) Name

func (cmd *BookmarkCommand) Name() string

Name returns the name of the bookmark command.

func (*BookmarkCommand) Run

Run runs the bookmark command.

func (*BookmarkCommand) Usage

func (cmd *BookmarkCommand) Usage() string

Usage returns the usage of the bookmark command.

type RenderCommand

type RenderCommand struct {
	// contains filtered or unexported fields
}

RenderCommand represents the command to render a template.

func NewRenderCommand

func NewRenderCommand(fs afero.Fs, logger *slog.Logger, console *utils.Console) *RenderCommand

NewRenderCommand creates a new instance of RenderCommand.

func (*RenderCommand) Arguments

func (cmd *RenderCommand) Arguments() []cli.Argument

Arguments returns the command arguments.

func (*RenderCommand) Command

func (cmd *RenderCommand) Command() *cli.Command

Command returns the command.

func (*RenderCommand) Description

func (cmd *RenderCommand) Description() string

Description returns the description of the command.

func (*RenderCommand) Flags

func (cmd *RenderCommand) Flags() []cli.Flag

Flags returns the flags of the command.

func (*RenderCommand) Name

func (cmd *RenderCommand) Name() string

Name returns the name of the command.

func (*RenderCommand) Run

func (cmd *RenderCommand) Run(ctx context.Context, args *cli.Command) error

Run executes the RenderCommand.

func (*RenderCommand) Usage

func (cmd *RenderCommand) Usage() string

Usage returns the usage of the command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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