command

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 RunChild

func RunChild() error

RunChild handles child 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 a child process in a new namespace and the child invokes RunChild.

Types

This section is empty.

Jump to

Keyboard shortcuts

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