cmd

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package cmd provides entry points for CLI commands.

Index

Constants

View Source
const (
	CliName = "crashd"
)

Variables

View Source
var (
	// CrashdDir is the directory path created at crashd runtime
	CrashdDir = filepath.Join(os.Getenv("HOME"), ".crashd")

	// ArgsFile is the path of the defaults args file.
	ArgsFile = filepath.Join(CrashdDir, "args")
)

Functions

func CreateCrashdDir added in v0.3.0

func CreateCrashdDir() error

CreateCrashdDir creates a .crashd directory which can be used as a default workdir for script execution. It will also house the default args file.

func Run

func Run() error

Run starts the command

Types

This section is empty.

Jump to

Keyboard shortcuts

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