cmd

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result added in v0.5.1

type Result struct {
	// contains filtered or unexported fields
}

Result the running result of the program

func Run

func Run() Result

Run running the gofs program

func RunWithArgs

func RunWithArgs(args []string) Result

RunWithArgs running the gofs program with specified command-line arguments, starting with the program name

func RunWithConfig

func RunWithConfig(c conf.Config) Result

RunWithConfig running the gofs program with specified config

func RunWithConfigFile added in v0.5.1

func RunWithConfigFile(path string) Result

RunWithConfigFile running the gofs program with specified config file

func (Result) Notify added in v0.5.1

func (r Result) Notify(s os.Signal) error

Notify send a signal to the program

func (Result) Shutdown added in v0.5.1

func (r Result) Shutdown() error

Shutdown shutdown the program

func (Result) Wait added in v0.5.1

func (r Result) Wait() error

Wait wait for the program exit

func (Result) WaitInit added in v0.5.1

func (r Result) WaitInit() error

WaitInit wait for the program to finish initialization

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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