Documentation ¶
Index ¶
- Constants
- func BuildCommand(ctx context.Context, interpreter, script string, args []string) (*exec.Cmd, func(), error)
- func CleanupCommand(cmd string) (clean string)
- func DefaultHomeDir() string
- func GetEditorCmd() string
- func GetTTY() string
- func IdentifyShell() string
- func IsCompoundStatement(command string) bool
- func KillProcess(cmd *exec.Cmd) error
- func NativeHistory(lineCount int) (<-chan string, error)
- func Newline(count uint) string
- func OpenEditor(filename string) error
- func ShellNameFromExt(fileExt string) string
- func WriteTmpFile(script string) (string, func(), error)
- type AnyShell
- type Bash
- type Node
- type Python
- type Ruby
- type Shell
Constants ¶
View Source
const DefaultShell = "bash"
Variables ¶
This section is empty.
Functions ¶
func BuildCommand ¶ added in v1.2.0
func CleanupCommand ¶
func DefaultHomeDir ¶ added in v1.2.0
func DefaultHomeDir() string
func GetEditorCmd ¶
func GetEditorCmd() string
func IdentifyShell ¶
func IdentifyShell() string
func IsCompoundStatement ¶ added in v1.2.0
func KillProcess ¶ added in v1.2.0
func NativeHistory ¶ added in v1.2.0
func OpenEditor ¶ added in v1.2.0
func ShellNameFromExt ¶ added in v1.2.0
func WriteTmpFile ¶
Types ¶
type AnyShell ¶
type AnyShell struct {
Name string
}
func (*AnyShell) BuildCommand ¶
func (*AnyShell) FileExtension ¶ added in v1.2.0
func (*AnyShell) LineComment ¶ added in v1.2.0
type Bash ¶
type Bash struct{}
func (*Bash) BuildCommand ¶
func (*Bash) FileExtension ¶ added in v1.2.0
func (*Bash) LineComment ¶ added in v1.2.0
type Node ¶ added in v1.2.0
type Node struct {
*AnyShell
}
func (*Node) FileExtension ¶ added in v1.2.0
func (*Node) LineComment ¶ added in v1.2.0
type Python ¶ added in v1.2.0
type Python struct {
*AnyShell
}
func (*Python) FileExtension ¶ added in v1.2.0
type Ruby ¶ added in v1.2.0
type Ruby struct {
*AnyShell
}
func (*Ruby) FileExtension ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.