edit

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigDefaultPermission  = 0o666
	ScriptDefaultPermissions = 0o755
	DirDefaultPermissions    = 0o777
)

Variables

View Source
var ErrCannotFindOutEditor = errors.New("cannot find out editor")

Functions

func NewAppConfig

func NewAppConfig() *cobra.Command

func NewScript

func NewScript() *cobra.Command

func NewScriptConfig

func NewScriptConfig() *cobra.Command

Types

type FlagEditor

type FlagEditor struct {
	Value string
}

func (*FlagEditor) Get

func (f *FlagEditor) Get() (string, error)

func (*FlagEditor) Set

func (f *FlagEditor) Set(value string) error

func (*FlagEditor) String

func (f *FlagEditor) String() string

func (*FlagEditor) Type

func (f *FlagEditor) Type() string

Jump to

Keyboard shortcuts

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