impl

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmptyCmd = &cobra.Command{
	Use:   "empty",
	Short: "empty clears all trashbins that can be found",
	Long:  "TODO",

	SuggestFor: []string{"clear"},

	Args: cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {
		if err := wastebasket.Empty(); err != nil {
			cmd.PrintErrln(err)
		}
	},
}
View Source
var TrashCmd = &cobra.Command{
	Use:   "trash files...",
	Short: "trash moves the specified files into the trashbin",
	Long:  "TODO",

	SuggestFor: []string{"delete", "remove", "recycle"},
	Args:       cobra.MinimumNArgs(1),
	Run: func(cmd *cobra.Command, args []string) {
		if err := wastebasket.Trash(args...); err != nil {
			cmd.PrintErrln(err)
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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