subpresets

package
v0.0.0-...-b1846a3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2022 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package subpresets contains some presets and premade 'default' subcommands for DRC 0.X These can be added to the handler.Config.DefaultSubcommands array where they'll be automatically added to all commands at init time They can also be excluded from being added from certain commands via Command.SubcommandToggle

Note these commands are designed to be used as subcommands, see the other presets package for root level commands

Index

Constants

This section is empty.

Variables

View Source
var SubcommandSimpleHelp = drc.Command{
	Name:   "help",
	Manual: []string{"The default implementation of a simple subcommand help command, takes up to one argument and outputs that page of the parent commands documentation", "that moment when you read the help on a help command", "egg", "E"},

	Config: drc.CfgCommand{
		Listable: false,
	},

	Exec: simpleHelp,
}

SubcommandSimpleHelp is a default implementation of a help subcommand It takes up to 1 argument and outputs that page of the parent commands manual Note this is only for use as a subcommand, this won't work on the root level, use the preset package for those

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