cmd

package
v0.0.0-...-b86a68b Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func FetchNode

func FetchNode(n *nodes.Node)

func InitNode

func InitNode(n *nodes.Node)

Types

type CLI

type CLI struct {
	Globals

	Rm     RmCmd     `cmd:"" help:"Remove files."`
	Detect detectCmd `cmd:"" help:"Remove files. " default:"0"`
}

type Globals

type Globals struct {
	Debug   bool                `help:"print debug info" short:"d"`
	Version version.VersionFlag `help:"print version and exit" short:"V"`
}

type RmCmd

type RmCmd struct {
	Force     bool `help:"Force removal."`
	Recursive bool `help:"Recursively remove files."`

	Paths []string `arg:"" name:"path" help:"Paths to remove." type:"path"`
}

func (*RmCmd) Run

func (r *RmCmd) Run(ctx *Globals) error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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