whoami

package
v0.0.0-...-923e5ac Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2018 License: GPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ERROR_USER_NOT_FOUND = 20
)

Variables

This section is empty.

Functions

func CurrentUser

func CurrentUser(input *Input, output abstract.OutputInterface) (exitCode uint8)

func PrintUser

func PrintUser(user *user.User, input *Input, output abstract.OutputInterface)

func WhoAmI

func WhoAmI(input *Input) (exitCode uint8)

Types

type Input

type Input struct {
	abstract.Input

	PrintAll      bool
	PrintUsername bool
	PrintUid      bool
	PrintGid      bool
	PrintName     bool
	PrintHome     bool
}

func (*Input) Verify

func (input *Input) Verify() (e error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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