command

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Edit added in v0.3.0

func Edit(configName, homeDir string) error

Edit opens a Drop config file in the user's editor ('drop edit envid' command). 'base' can be passed instead of an environment id to open the config file shared by all environments.

$VISUAL takes precedence over $EDITOR. If neither is set, the config path is just printed.

func InitEnv

func InitEnv(envId string, noCwd bool, homeDir, dropHome string) error

InitEnv creates a new drop environment ('drop init envid' command).

It creates the environment directory in dropHome, and environment specific config file which extends base config file in the drop config directory.

If base config file is missing (first run of 'drop init'), the function creates the default base.toml.

func RunInit added in v0.3.1

func RunInit() error

RunInit handles init process logic for the 'drop run' command. It sets up the namespace, drops privileges and executes a command provided by the user.

func RunParent

func RunParent(flags *cli.RunFlags, homeDir, dropHome string) error

RunParent handles parent process logic for the 'drop run' command. It executes an init process in a new namespace and the init process invokes RunInit.

Types

This section is empty.

Jump to

Keyboard shortcuts

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