Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BoolOptions = ignoreCaseSorted.MapToDictionary(map[string]*optionT{ "completion_hidden": { V: &completion.IncludeHidden, Usage: "Include hidden files on completion", NoUsage: "Do not include hidden files on completion", }, "completion_slash": { V: &completion.UseSlash, Usage: "use forward slash on completion", NoUsage: "Do not use slash on completion", }, "glob": { V: &shell.WildCardExpansionAlways, Usage: "Enable to expand wildcards", NoUsage: "Disable to expand wildcards", }, "glob_slash": { V: &shell.GlobUseSlash, Usage: "Use forward slash on wildcard expansion", NoUsage: "Do not Use forward slash on wildcard expansion", }, "noclobber": { V: &shell.NoClobber, Usage: "forbide to overwrite files on redirect", NoUsage: "Do not forbide to overwrite files no redirect", }, "usesource": { V: &shell.UseSourceRunBatch, Usage: "allow batchfile to change environment variables of nyagos", NoUsage: "forbide batchfile to change environment variables of nyagos", }, "tilde_expansion": { V: &shell.TildeExpansion, Usage: "Enable Tilde Expansion", NoUsage: "Disable Tilde Expansion", }, "read_stdin_as_file": { V: &ReadStdinAsFile, Usage: "Read commands from stdin as a file stream. Disable to edit line", NoUsage: "Read commands from stdin as Windows Console(tty). Enable to edit line", }, "output_surrogate_pair": { Setter: readline.EnableSurrogatePair, Getter: readline.IsSurrogatePairEnabled, Usage: "Output surrogate pair characters as it is", NoUsage: "Output surrogate pair characters like <NNNNN>", }, "predict": { V: &OptionPredictColor, Usage: "Enable prediction on readline", NoUsage: "Disable prediction on readline", }, })
BoolOptions are the all global option list.
View Source
var OptionPredictColor = true
View Source
var ReadStdinAsFile = false
ReadStdinAsFile is the flat to read commands from stdin as a file stream
Functions ¶
func AllNames ¶
func AllNames(ctx context.Context) ([]completion.Element, error)
AllNames returns all command-names for completion package.
func CorrectCase ¶
CorrectCase corrects `path`'s case.
func StampIsValid ¶
stampIsOk returns true if year,month,mday,hour,min,sec isnot invalid.
Types ¶
type Param ¶
type Param interface { Arg(int) string Args() []string SetArgs(s []string) In() io.Reader Out() io.Writer Err() io.Writer Term() io.Writer RawArgs() []string Spawnlp(context.Context, []string, []string) (int, error) Spawnlpe(context.Context, []string, []string, map[string]string) (int, error) Loop(context.Context, shell.Stream) (int, error) ReadCommand(context.Context) (context.Context, string, error) DumpEnv() []string Setenv(key, val string) GetHistory() shell.History }
Param is the interface for built-in command
Source Files
¶
- alias.go
- attrib_unix.go
- bindkey.go
- box.go
- cd.go
- chmod.go
- clip_unix.go
- clone_unix.go
- cls.go
- cmdexecsc.go
- commands.go
- copy.go
- correctcase.go
- del.go
- df_unix.go
- du.go
- echo.go
- env.go
- exit.go
- foreach.go
- history.go
- if.go
- kill.go
- lnk.go
- ls.go
- mkdir.go
- mklink.go
- more.go
- open.go
- ps.go
- pushd.go
- pwd.go
- rem.go
- select.go
- set.go
- seta.go
- source.go
- source_unix.go
- table_unix.go
- timecheck.go
- touch.go
- type.go
- which.go
Click to show internal directories.
Click to hide internal directories.