go.octolab.org: go.octolab.org/os/shell Index | Files

package shell

import "go.octolab.org/os/shell"

Index

Package Files

shell.go

type Operation Uses

type Operation int
const (
    Assign Operation = 1 << iota
    Completion
    Exec
    Print

    All = Assign | Completion | Exec | Print
)

type Shell Uses

type Shell int
const (
    Sh         Shell = 1 << iota // https://en.wikipedia.org/wiki/Bourne_shell
    Bash                         // https://en.wikipedia.org/wiki/Bash_(Unix_shell)
    Zsh                          // https://en.wikipedia.org/wiki/Z_shell
    PowerShell                   // https://en.wikipedia.org/wiki/PowerShell
)

func Classify Uses

func Classify(bin string, operations ...Operation) (sh Shell, err error)

func (Shell) String Uses

func (sh Shell) String() string

Package shell imports 2 packages (graph) and is imported by 1 packages. Updated 2019-11-12. Refresh now. Tools for package owners.