Documentation
¶
Index ¶
- func AllPipelineCompleter(con *repl.Console) carapace.Action
- func ArtifactCompleter(con *repl.Console) carapace.Action
- func ArtifactFlagSet(f *pflag.FlagSet)
- func ArtifactNameCompleter(con *repl.Console) carapace.Action
- func Bind(desc string, persistent bool, cmd *cobra.Command, flags func(f *pflag.FlagSet))
- func BindArgCompletions(cmd *cobra.Command, anyAction *carapace.Action, actions ...carapace.Action)
- func BindFlag(cmd *cobra.Command, customSet ...func(f *pflag.FlagSet))
- func BindFlagCompletions(cmd *cobra.Command, bind func(comp carapace.ActionMap))
- func BuildTargetCompleter(con *repl.Console) carapace.Action
- func BuildTypeCompleter(con *repl.Console) carapace.Action
- func CLRFlagSet(f *pflag.FlagSet)
- func EncryptionFlagSet(f *pflag.FlagSet)
- func ExecuteFlagSet(f *pflag.FlagSet)
- func GenerateFlagSet(f *pflag.FlagSet)
- func GithubFlagSet(f *pflag.FlagSet)
- func JobsCompleter(con *repl.Console, cmd *cobra.Command, use string) carapace.Action
- func ListenerIDCompleter(con *repl.Console) carapace.Action
- func ListenerPipelineNameCompleter(con *repl.Console, cmd *cobra.Command) carapace.Action
- func MalHttpFlagset(f *pflag.FlagSet)
- func ModulesCompleter() carapace.Action
- func NewCompletions(cmd *cobra.Command) *carapace.Carapace
- func OpsecConfirm(cmd *cobra.Command) error
- func ParseArtifactFlags(cmd *cobra.Command) ([]string, string)
- func ParseBinaryDataFlags(cmd *cobra.Command) (string, string, bool, uint32)
- func ParseBinaryFlags(cmd *cobra.Command) (string, []string, bool, uint32)
- func ParseCLRFlags(cmd *cobra.Command) map[string]string
- func ParseEncryptionFlags(cmd *cobra.Command) (string, *clientpb.Encryption)
- func ParseFullBinaryDataFlags(cmd *cobra.Command) (string, string, bool, uint32, string, string)
- func ParseFullBinaryFlags(cmd *cobra.Command) (string, []string, bool, uint32, string, string)
- func ParseGenerateFlags(cmd *cobra.Command) (string, string, string, []string, string, int, float64, bool)
- func ParseGithubFlags(cmd *cobra.Command) (string, string, string, string, bool)
- func ParsePipelineFlags(cmd *cobra.Command) (string, string, uint32)
- func ParseProfileFlags(cmd *cobra.Command) (string, string, string)
- func ParseSRDIFlags(cmd *cobra.Command) (string, string, uint32, map[string]string)
- func ParseSacrificeFlags(cmd *cobra.Command) *implantpb.SacrificeProcess
- func ParseTLSFlags(cmd *cobra.Command) (*clientpb.TLS, error)
- func PipelineFlagSet(f *pflag.FlagSet)
- func ProfileCompleter(con *repl.Console) carapace.Action
- func ProfileSet(f *pflag.FlagSet)
- func ProxyFlagSet(f *pflag.FlagSet)
- func Register(con *repl.Console)
- func RemAgentCompleter(con *repl.Console) carapace.Action
- func RemPipelineCompleter(con *repl.Console) carapace.Action
- func ResourceCompleter(con *repl.Console) carapace.Action
- func RestrictTargets(filters ...string) map[string]string
- func SRDIFlagSet(f *pflag.FlagSet)
- func SacrificeFlagSet(f *pflag.FlagSet)
- func ServiceErrorControlCompleter() carapace.Action
- func ServiceStartTypeCompleter() carapace.Action
- func SessionAddonCompleter(con *repl.Console) carapace.Action
- func SessionIDCompleter(con *repl.Console) carapace.Action
- func SessionModuleCompleter(con *repl.Console) carapace.Action
- func SessionTaskCompleter(con *repl.Console) carapace.Action
- func SetFlagSetGroup(flagSet *pflag.FlagSet, name string)
- func SyncCompleter(con *repl.Console) carapace.Action
- func TaskTriggerTypeCompleter() carapace.Action
- func TlsCertFlagSet(f *pflag.FlagSet)
- func WebContentCompleter(con *repl.Console) carapace.Action
- func WebsiteCompleter(con *repl.Console) carapace.Action
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllPipelineCompleter ¶ added in v0.0.3
func ArtifactFlagSet ¶ added in v0.1.0
func ArtifactNameCompleter ¶ added in v0.0.3
func Bind ¶
Bind is a convenience function to bind flags to a command, through newly created pflag.Flagset type. This function can be called any number of times for any command. desc - An optional name for the flag set (can be empty, but might end up useful). persistent - If true, the flags bound will apply to all subcommands of this command. cmd - The pointer to the command the flags should be bound to. flags - A function using this flag set as parameter, for you to register flags.
func BindArgCompletions ¶
func BindFlagCompletions ¶
BindFlagCompletions is a convenience function for binding completers to flags requiring arguments. (It wraps a few steps to be used through the *carapace.Carapace type so you don't have to bother). cmd - The target command/subcommand which flags to be completed. bind - A function using a map "flag-name":carapace.Action for you to bind completions to the flag.
See https://rsteube.github.io/carapace/ for a complete documentation of carapace completions.
func BuildTargetCompleter ¶ added in v0.0.3
func BuildTypeCompleter ¶ added in v0.1.0
func CLRFlagSet ¶ added in v0.0.3
func EncryptionFlagSet ¶ added in v0.0.3
func ExecuteFlagSet ¶
func GenerateFlagSet ¶ added in v0.0.3
func GithubFlagSet ¶ added in v0.1.0
func JobsCompleter ¶ added in v0.0.3
func ListenerPipelineNameCompleter ¶ added in v0.0.3
func MalHttpFlagset ¶ added in v0.0.3
func ModulesCompleter ¶ added in v0.1.0
func NewCompletions ¶
NewCompletions registers the command to the application completion engine and returns you a type through which you can register all sorts of completions for this command, from flag arguments, positional ones, per index or remaining, etc.
See https://rsteube.github.io/carapace/ for a complete documentation of carapace completions.
func OpsecConfirm ¶ added in v0.1.0
func ParseArtifactFlags ¶ added in v0.1.0
func ParseBinaryDataFlags ¶ added in v0.1.0
func ParseBinaryFlags ¶ added in v0.0.3
func ParseEncryptionFlags ¶ added in v0.0.3
func ParseEncryptionFlags(cmd *cobra.Command) (string, *clientpb.Encryption)
func ParseFullBinaryDataFlags ¶ added in v0.1.0
func ParseFullBinaryFlags ¶ added in v0.0.3
func ParseGenerateFlags ¶ added in v0.0.3
func ParseGithubFlags ¶ added in v0.1.0
func ParsePipelineFlags ¶ added in v0.0.3
func ParseProfileFlags ¶ added in v0.0.3
func ParseSRDIFlags ¶ added in v0.0.3
func ParseSacrificeFlags ¶ added in v0.0.3
func ParseSacrificeFlags(cmd *cobra.Command) *implantpb.SacrificeProcess
func PipelineFlagSet ¶
func ProfileSet ¶ added in v0.0.3
func ProxyFlagSet ¶ added in v0.1.0
func RemPipelineCompleter ¶ added in v0.1.0
func RestrictTargets ¶
RestrictTargets generates a cobra annotation map with a single console.CommandHiddenFilter key to a comma-separated list of filters to use in order to expose/hide commands based on requirements. Ex: cmd.Annotations = RestrictTargets("windows") will only show the command if the target is Windows. Ex: cmd.Annotations = RestrictTargets("windows", "beacon") show the command if target is a beacon on Windows.
func SRDIFlagSet ¶ added in v0.0.3
func SacrificeFlagSet ¶
func ServiceErrorControlCompleter ¶ added in v0.1.0
func ServiceStartTypeCompleter ¶ added in v0.1.0
func SessionAddonCompleter ¶ added in v0.0.3
func SessionModuleCompleter ¶ added in v0.0.3
func SessionTaskCompleter ¶ added in v0.0.3
func SetFlagSetGroup ¶ added in v0.1.0
func TaskTriggerTypeCompleter ¶ added in v0.1.0
func TlsCertFlagSet ¶
func WebContentCompleter ¶ added in v0.1.0
Types ¶
This section is empty.