MCPcopy Index your code

hub / github.com/posener/complete / functions

Functions194 in github.com/posener/complete

↓ 23 callersFunctionFiles
Dirs returns a predictor that predict file or directory paths. If a non-empty pattern is given, the predicted paths will match that pattern.
predict/files.go:18
↓ 21 callersFunctionDirs
Dirs returns a predictor that predict directory paths. If a non-empty pattern is given, the predicted paths will match that pattern.
predict/files.go:12
↓ 19 callersFunctionOptValues
OptValues allows to set a desired set of valid values for the flag.
predict/options.go:20
↓ 19 callersMethodPredict
Predict returns prediction options for a given prefix. The prefix is what currently is typed as a hint for what to return, but the returned values can
complete.go:38
↓ 15 callersMethodParse
Parse parses command line arguments.
compflag/compflag.go:50
↓ 12 callersMethodCheck
Check checks that value is one of the predicted values, in case that the check field was set.
predict/options.go:68
↓ 9 callersFunctionOptCheck
OptCheck enforces the valid values on the predicted flag.
predict/options.go:35
↓ 8 callersFunctionOptions
Options return a config from a list of options.
predict/options.go:51
↓ 8 callersFunctionOr
Or unions prediction functions, so that the result predication is the union of their predications.
predict/predict.go:24
↓ 8 callersMethodString
()
flags_test.go:45
↓ 7 callersMethodName
()
compflag/compflag.go:60
↓ 7 callersMethodString
String if a flag function for a flag of type string.
compflag/flags.go:54
↓ 7 callersFunctionTest
Test is a testing helper function for testing bash completion of a given completer.
testing.go:11
↓ 6 callersMethodDuration
Duration if a flag function for a flag of type time.Duration.
compflag/flags.go:90
↓ 6 callersMethodInt
Int if a flag function for a flag of type int.
compflag/flags.go:78
↓ 5 callersFunctionParse
Parse parses a typed command line argument list, and returns a list of arguments.
internal/arg/arg.go:26
↓ 4 callersMethodComplete
Complete runs the completion of the described command.
command.go:19
↓ 4 callersMethodLastSpace
()
internal/tokener/tokener.go:65
↓ 4 callersMethodgetCompletionFilePath
(cmd string)
install/fish.go:48
↓ 3 callersMethodBool
Bool if a flag function for a flag of type bool.
compflag/flags.go:66
↓ 3 callersFunctionComplete
Complete the command line arguments for the given command in the case that the program was invoked with COMP_LINE and COMP_POINT environment variables
complete.go:59
↓ 3 callersMethodQuoted
()
internal/tokener/tokener.go:49
↓ 3 callersFunctionString
String if a flag function for a flag of type string.
compflag/flags.go:14
↓ 3 callersMethodVisit
Visit visit a byte and update the state of the quotes. It returns true if the byte was quotes or escape character.
internal/tokener/tokener.go:12
↓ 3 callersMethodcmd
(cmd, bin string)
install/zsh.go:42
↓ 3 callersMethodcmd
(cmd, bin string)
install/bash.go:35
↓ 3 callersMethodcomplete
compete command with given before and after text. if the command has sub commands: try to complete only sub commands or help flags. Otherwise complete
complete.go:114
↓ 3 callersFunctionfixPathForm
fixPathForm changes a file name to a relative name
predict/files.go:139
↓ 3 callersFunctiongetBinaryPath
()
install/install.go:162
↓ 3 callersFunctionhelpFlag
helpFlag returns either "-h", "-help" or "--help".
complete.go:334
↓ 3 callersFunctioninstallers
()
install/install.go:113
↓ 3 callersMethoditerateStack
(f func(Completer))
complete.go:257
↓ 3 callersFunctionlineInFile
(path string, line string)
install/utils.go:11
↓ 3 callersMethodsuggestFlag
(dashes, prefix string)
complete.go:215
↓ 3 callersMethodsuggestFlagValue
(flagName, prefix string)
complete.go:233
↓ 2 callersMethodBoolVar
BoolVar if a flag function for a flag of already exiting variable of type bool.
compflag/flags.go:73
↓ 2 callersMethodDurationVar
DurationVar if a flag function for a flag of already exiting variable of type time.Duration.
compflag/flags.go:97
↓ 2 callersMethodEscaped
()
internal/tokener/tokener.go:45
↓ 2 callersFunctionFlagSet
FlagSet returns a completer for a given standard library `flag.FlagSet`. It completes flag names, and additionally completes value if the `flag.Value`
flags.go:14
↓ 2 callersMethodIntVar
IntVar if a flag function for a flag of already exiting variable of type int.
compflag/flags.go:85
↓ 2 callersMethodIsInstalled
(cmd, bin string)
install/fish.go:17
↓ 2 callersMethodIsInstalled
(cmd, bin string)
install/zsh.go:14
↓ 2 callersMethodIsInstalled
(cmd, bin string)
install/bash.go:13
↓ 2 callersMethodStringVar
StringVar if a flag function for a flag of already exiting variable of type string.
compflag/flags.go:61
↓ 2 callersMethodSubCmdGet
SubCmdGet should return a sub command of the current command for the given sub command name.
complete.go:20
↓ 2 callersMethodSubCmdList
SubCmdList should return the list of all sub commands of the current command.
complete.go:18
↓ 2 callersMethodVisit
(fn func(*flag.Flag))
compflag/compflag.go:54
↓ 2 callersFunctionappendFile
(path string, content string)
install/utils.go:19
↓ 2 callersFunctionfilterByPrefix
(prefix string, options ...string)
complete.go:284
↓ 2 callersFunctionfixDirPath
(path string)
predict/files.go:169
↓ 2 callersFunctionfixDirPath
(path string)
gocomplete/pkgs.go:171
↓ 2 callersFunctionfixPathForm
fixPathForm changes a file name to a relative name
gocomplete/pkgs.go:141
↓ 2 callersFunctionfuncPredict
predictTest predict test names. it searches in the current directory for all the go test files and then all the relevant function names. for test name
gocomplete/tests.go:22
↓ 2 callersFunctionhasPrefix
hasPrefix checks if s has the give prefix. It disregards quotes and escaped spaces, and return s in the form of the given prefix.
complete.go:299
↓ 2 callersFunctionmain
()
gocomplete/complete.go:24
↓ 2 callersFunctionmatchFile
MatchFile returns true if prefix can match the file
predict/files.go:123
↓ 2 callersMethodpredictFiles
(prefix string)
predict/files.go:47
↓ 2 callersFunctionrcFile
(name string)
install/install.go:170
↓ 2 callersFunctionremoveFromFile
(path string, line string)
install/utils.go:23
↓ 2 callersFunctionsuggest
(dashes, prefix string, collect func(prefix string) []string)
complete.go:263
↓ 2 callersMethodsuggestArgsValue
(prefix string)
complete.go:245
↓ 1 callersMethodArgsGet
ArgsGet should return predictor for positional arguments of the command line.
complete.go:29
↓ 1 callersMethodClosed
()
internal/tokener/tokener.go:57
↓ 1 callersMethodComplete
Complete performs bash completion if needed.
compflag/compflag.go:66
↓ 1 callersMethodFlagGet
FlagGet should return completion options for a given flag. It is invoked with the flag name without the dash prefix. The flag is not promised to be in
complete.go:27
↓ 1 callersMethodFlagList
FlagList should return a list of all the flag names of the current command. The flag names should not have the dash prefix.
complete.go:23
↓ 1 callersFunctionInstall
Install complete command given: cmd: is the command name
install/install.go:53
↓ 1 callersMethodInstall
(cmd, bin string)
install/install.go:47
↓ 1 callersMethodInternalTypeName
()
compflag/gen/main.go:24
↓ 1 callersMethodIsInstalled
(cmd, bin string)
install/install.go:46
↓ 1 callersMethodLookup
(name string)
compflag/compflag.go:62
↓ 1 callersFunctionOptPredictor
OptPredictor allows to set a custom predictor.
predict/options.go:25
↓ 1 callersFunctionParse
Parse parses command line arguments. It also performs bash completion when needed.
compflag/compflag.go:73
↓ 1 callersFunctionRun
(name string, uninstall, yes bool, out io.Writer, in io.Reader)
install/install.go:15
↓ 1 callersFunctionUninstall
Uninstall complete command given: cmd: is the command name
install/install.go:93
↓ 1 callersMethodUninstall
(cmd, bin string)
install/install.go:48
↓ 1 callersMethodVisitAll
(fn func(*flag.Flag))
compflag/compflag.go:55
↓ 1 callersMethodcmd
(cmd, bin string)
install/fish.go:52
↓ 1 callersFunctioncreateFile
(path string, content string)
install/utils.go:15
↓ 1 callersFunctiondirectory
directory gives the directory of the given partial path in case that it is not, we fall back to the current directory.
predict/files.go:92
↓ 1 callersFunctiondirectory
(prefix string)
gocomplete/pkgs.go:129
↓ 1 callersFunctionequal
(s1, s2 []string)
gocomplete/tests_test.go:64
↓ 1 callersFunctionfindGopath
()
gocomplete/pkgs.go:112
↓ 1 callersFunctionfishConfigDir
()
install/install.go:138
↓ 1 callersFunctionformatBool
(v bool)
compflag/compflag.go:98
↓ 1 callersFunctionformatDuration
(v time.Duration)
compflag/compflag.go:102
↓ 1 callersFunctionformatInt
(v int)
compflag/compflag.go:94
↓ 1 callersFunctionformatString
(v string)
compflag/compflag.go:90
↓ 1 callersFunctionfuncNames
get all test names in current directory
gocomplete/tests.go:29
↓ 1 callersFunctionfunctionsInFile
(path string, regexp *regexp.Regexp)
gocomplete/parse.go:11
↓ 1 callersFunctiongetConfigHomePath
()
install/install.go:149
↓ 1 callersMethodlistFiles
(dir string)
predict/files.go:61
↓ 1 callersFunctionlistPackages
listPackages looks in current pointed dir and in all it's direct sub-packages and return a list of paths to go packages.
gocomplete/pkgs.go:45
↓ 1 callersFunctionnewBoolValue
(val bool, p *bool, c predict.Config)
compflag/flags.go:147
↓ 1 callersFunctionnewDurationValue
(val time.Duration, p *time.Duration, c predict.Config)
compflag/flags.go:227
↓ 1 callersFunctionnewIntValue
(val int, p *int, c predict.Config)
compflag/flags.go:188
↓ 1 callersFunctionnewStringValue
(val string, p *string, c predict.Config)
compflag/flags.go:108
↓ 1 callersFunctionnext
next returns the first argument in the line and the rest of the line.
internal/arg/arg.go:42
↓ 1 callersMethodparse
parse a flag from an argument. The flag can have value attached when it is given in the `-key=value` format.
internal/arg/arg.go:87
↓ 1 callersFunctionparseBool
(s string)
compflag/compflag.go:96
next →1–100 of 194, ranked by callers