environment

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

Environment

Contains command implementations for manipulating remote environment variables.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Commands

func Commands(con *console.SliverClient) []*cobra.Command

Commands returns the “ command and its subcommands.

func EnvGetCmd

func EnvGetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

EnvGetCmd - Get a remote environment variable

func EnvSetCmd

func EnvSetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

EnvSetCmd - Set a remote environment variable

func EnvUnsetCmd

func EnvUnsetCmd(cmd *cobra.Command, con *console.SliverClient, args []string)

EnvUnsetCmd - Unset a remote environment variable

func PrintGetEnvInfo

func PrintGetEnvInfo(envInfo *sliverpb.EnvInfo, con *console.SliverClient)

PrintGetEnvInfo - Print the results of the env get command

func PrintSetEnvInfo

func PrintSetEnvInfo(name string, value string, envInfo *sliverpb.SetEnv, con *console.SliverClient)

PrintSetEnvInfo - Print the set environment info

func PrintUnsetEnvInfo

func PrintUnsetEnvInfo(name string, envInfo *sliverpb.UnsetEnv, con *console.SliverClient)

PrintUnsetEnvInfo - Print the set environment info

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL