MCPcopy Create free account

hub / github.com/avamsi/climate / functions

Functions78 in github.com/avamsi/climate

↓ 19 callersMethodt
()
reflect.go:30
↓ 13 callersFunctionsliceParser
(typer typeParser[T])
strconv.go:33
↓ 9 callersMethodChild
(name string)
internal/metadata.go:164
↓ 9 callersFunctiondeclareOption
(flagVarP flagTypeVarP[T], opt *option, typer typeParser[T])
options.go:61
↓ 7 callersMethodv
()
reflect.go:44
↓ 5 callersFunctionWithMetadata
WithMetadata returns a modifier that sets the metadata to be used by Run for augmenting the CLI with additional information (for --help etc.).
climate.go:76
↓ 3 callersFunctionFunc
Func returns an executable plan for the given function, which must conform to the following signatures (excuse the partial [optional] notation): fun
climate.go:28
↓ 3 callersMethodLong
()
internal/metadata.go:114
↓ 3 callersMethodLookup
(pkgPath, name string)
internal/metadata.go:87
↓ 3 callersFunctionNormalizeToKebabCase
NormalizeToKebabCase normalizes the input string to ASCII kebab-case. It tries to convert non-ASCII runes in the input string to ASCII by decomposing
internal/strings.go:25
↓ 3 callersFunctionRunAndExit
RunAndExit executes the given plan and exits with the exit code.
climate.go:99
↓ 3 callersMethodSetDoc
(doc *ast.CommentGroup)
internal/metadata.go:34
↓ 3 callersMethoddeclare
()
options.go:86
↓ 2 callersFunctionDecodeAsRawMetadata
(b []byte)
internal/metadata.go:26
↓ 2 callersMethodLookupType
(t reflect.Type)
internal/metadata.go:94
↓ 2 callersFunctionNew
(p internal.Plan, mods ...func(*internal.RunOptions))
testing/clitest/clitest.go:21
↓ 2 callersFunctionRun
Run executes the given plan and returns the exit code.
climate.go:83
↓ 2 callersMethodShort
()
internal/metadata.go:121
↓ 2 callersFunctionStruct
Struct returns an executable plan for the struct given as the type parameter, with its methods* (and "child" structs) as subcommands. * Only methods
climate.go:42
↓ 2 callersMethodaddCommand
(sub *command)
command.go:42
↓ 2 callersMethodbuild
()
command.go:204
↓ 2 callersFunctionnewCommand
(name string, md *internal.Metadata, params []internal.ParamType)
command.go:27
↓ 2 callersMethodrun
(ctx context.Context)
command.go:117
↓ 2 callersFunctiontypeIsStructPointer
(t reflect.Type)
reflect.go:20
↓ 1 callersMethodAliases
()
internal/metadata.go:98
↓ 1 callersFunctionDecodeAsMetadata
(b []byte)
internal/metadata.go:81
↓ 1 callersMethodEncode
()
internal/metadata.go:69
↓ 1 callersMethodExecute
(context.Context, *Metadata)
internal/run.go:6
↓ 1 callersFunctionParamTypes
(f reflect.Type)
internal/param.go:19
↓ 1 callersFunctionParamsUsage
(names []string, types []ParamType)
internal/param.go:39
↓ 1 callersMethodSetComment
(comment *ast.CommentGroup)
internal/metadata.go:53
↓ 1 callersMethodUsage
(name string, args []ParamType)
internal/metadata.go:154
↓ 1 callersMethodbuild
()
command.go:295
↓ 1 callersMethodbuildRecursive
(parent *reflection, md *internal.Metadata)
plan.go:35
↓ 1 callersMethoddefaultValue
()
options.go:40
↓ 1 callersFunctionexitCode
(err error)
climate.go:62
↓ 1 callersFunctiongreet
Func is automatically converted to a command -- 1. Param names are converted to kebab-case and used* as part of the usage string ("command [opts]
cmd/examples/greet/main.go:40
↓ 1 callersFunctionnewTags
(st reflect.StructTag)
options.go:23
↓ 1 callersFunctionparseFunc
(f *ast.FuncDecl, pkgMd *internal.RawMetadata)
cmd/cligen/main.go:22
↓ 1 callersFunctionparsePkg
(pkg *packages.Package, rootMd *internal.RawMetadata)
cmd/cligen/main.go:66
↓ 1 callersFunctionparseType
(g *ast.GenDecl, pkgMd *internal.RawMetadata)
cmd/cligen/main.go:44
↓ 1 callersFunctionpkgDir
(pkg *packages.Package)
cmd/cligen/main.go:91
↓ 1 callersMethodrequired
()
options.go:45
↓ 1 callersMethodrun
(sig *runSignature)
command.go:155
↓ 1 callersMethodshorthand
()
options.go:35
↓ 1 callersFunctiontypeIsContext
(t reflect.Type)
reflect.go:10
↓ 1 callersFunctiontypeIsError
(t reflect.Type)
reflect.go:16
↓ 1 callersFunctionversion
()
command.go:46
↓ 1 callersFunctionversionCommand
(name, v string)
command.go:104
MethodChild
(name string)
internal/metadata.go:57
MethodCompletion
Print a command-line-completion script.
cmd/examples/jj/util/completion.go:10
FunctionErrExit
ErrExit returns an exitError with the given exit code and errors. exitError is used to indicate that the CLI should exit with the given exit code (as
error.go:31
FunctionErrUsage
ErrUsage returns the given error wrapped in a usageError or nil otherwise. usageError is used to indicate there's something wrong with the user input
error.go:12
MethodError
()
error.go:35
MethodExecute
(ctx context.Context, md *internal.Metadata)
plan.go:15
MethodExecute
(ctx context.Context, m *internal.Metadata)
plan.go:48
MethodExport
Update the underlying Git repo with changes made in the repo.
cmd/examples/jj/main.go:65
MethodInit
Create a new repo in the given directory.
cmd/examples/jj/main.go:33
MethodRemote
Manage Git remotes.
cmd/examples/jj/main.go:60
MethodSquash
Move changes from a revision into its parent. After moving the changes into the parent, the child revision will have the same content state as before
cmd/examples/jj/main.go:50
FunctionTestMain
(t *testing.T)
cmd/examples/greet/main_test.go:12
FunctionTestMain
(t *testing.T)
cmd/examples/jj/main_test.go:13
FunctionTestNormalizeToKebabCase
(t *testing.T)
internal/strings_test.go:9
FunctionTestSliceParser
(t *testing.T)
strconv_test.go:9
MethodUnwrap
()
error.go:19
MethodUnwrap
()
error.go:41
Functioncligen
cligen recursively parses the metadata of all Go packages in the current directory and its subdirectories, and writes it to the given output file.
cmd/cligen/main.go:104
Methoddeclare
()
options.go:163
FunctionflagUsages
(fset *pflag.FlagSet)
command.go:78
Functionmain
()
cmd/cligen/main.go:152
Functionmain
()
cmd/examples/greet/main.go:52
Functionmain
()
cmd/examples/jj/main.go:73
FunctionparseBool
(s string)
strconv.go:11
FunctionparseFloat64
(s string)
strconv.go:23
FunctionparseInt64
(s string)
strconv.go:15
FunctionparseString
(s string)
strconv.go:27
FunctionparseUint64
(s string)
strconv.go:19
FunctionvalidateNoArgs
(cmd *cobra.Command, args []string)
command.go:277