Documentation ¶
Overview ¶
SPDX-License-Identifier: Apache-2.0 Copyright © 2021 Roberto Hidalgo <milpa@un.rob.mx>
SPDX-License-Identifier: Apache-2.0 Copyright © 2021 Roberto Hidalgo <milpa@un.rob.mx>
SPDX-License-Identifier: Apache-2.0 Copyright © 2021 Roberto Hidalgo <milpa@un.rob.mx>
SPDX-License-Identifier: Apache-2.0 Copyright © 2021 Roberto Hidalgo <milpa@un.rob.mx>
Index ¶
- func ArgumentsToEnv(cmd *command.Command, dst *[]string, prefix string)
- func Env(cmd *command.Command, seed []string) []string
- func EnvironmentMap(cmd *command.Command) map[string]string
- func MilpaComplete(cmd *command.Command, currentValue string, config string) (values []string, flag cobra.ShellCompDirective, err error)
- func New(path string, repo string) (cmd *command.Command, err error)
- func OptionsEnvMap(cmd *command.Command, dst *map[string]string)
- func OptionsToEnv(cmd *command.Command, dst *[]string, prefix string)
- func ToEval(cmd *command.Command, args []string) string
- type Kind
- type Meta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgumentsToEnv ¶
ToEnv writes shell variables to dst.
func MilpaComplete ¶
func OptionsToEnv ¶
ToEnv writes shell variables to dst.
Types ¶
type Meta ¶
type Meta struct { // Path is the filesystem path to this command Path string `json:"path" yaml:"path"` // Repo is the filesystem path to this repo, including /.milpa Repo string `json:"repo" yaml:"repo"` // Name is a list of words naming this command Name []string `json:"name" yaml:"name"` // Kind can be executable (a binary or executable file), source (.sh file), or virtual (a sub-command group) Kind Kind `json:"kind" yaml:"kind"` // contains filtered or unexported fields }
func (*Meta) ParsingErrors ¶
Click to show internal directories.
Click to hide internal directories.