shell

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 7 Imported by: 5

README

go-shell

Build Status GoDoc Report Card

Package shell returns a user's shell across multiple platforms.

License

MIT

Documentation

Overview

Example (Shell_CurrentUserShell)
shell, ok := shell.CurrentUserShell()
_ = ok
fmt.Println(shell)
Example (Shell_UserShell)
u, err := user.Current()
if err != nil {
	fmt.Println(err)
	return
}
shell, ok := shell.UserShell(u)
_ = ok
fmt.Println(shell)

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUserShell

func CurrentUserShell() (string, bool)

CurrentUserShell is a convenience function that returns the current user's shell.

func UserShell

func UserShell(u *user.User) (string, bool)

UserShell returns u's shell.

Types

This section is empty.

Directories

Path Synopsis
cmd
shell command

Jump to

Keyboard shortcuts

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