Property | Type | Description | |
---|---|---|---|
$cache | array | Cache references to other commands | |
$description | string | ||
$display | integer | ||
$essential | boolean | ||
$name | string | ||
$session | array | hangar.session.json | |
$tag | array | ||
$userConfig | Current user's configuration |
Property | Type | Description | |
---|---|---|---|
$c | array | BASH COLORS | |
$config | array | hangar.json |
Method | Description | |
---|---|---|
fire ( array $args = [] ) : boolean | Execute a command | |
getCommandObject ( string $name, boolean $cache = true ) : self | Return a command | |
getCommandStatic ( string $name, boolean $cache = true ) : |
Return a command (statically callable) | |
getScreenSize ( ) : array | Return the size of the current terminal window | |
getToken ( string $supplier ) : string | Get a token for HTTP requests | |
saveConfig ( ) | Save the configuration | |
storeConfig ( array $data = [] ) | ||
usageInfo ( array $args = [] ) : boolean | Display the usage information for this command. |
Method | Description | |
---|---|---|
getSession ( ) : mixed | Get the session data | |
prompt ( string $text ) : string | Prompt the user for an input value | |
silentPrompt ( string $text = "Enter Password:" ) : string | Interactively prompts for input without echoing to the terminal. |
public getCommandObject ( string $name, boolean $cache = true ) : self | ||
$name | string | |
$cache | boolean | |
return | self | (derived class) |
public static getCommandStatic ( string $name, boolean $cache = true ) : |
||
$name | string | |
$cache | boolean | |
return |
public getScreenSize ( ) : array | ||
return | array | (int, int) |
final protected getSession ( ) : mixed | ||
return | mixed |
final protected silentPrompt ( string $text = "Enter Password:" ) : string | ||
$text | string | |
return | string |
public static array $cache | ||
return | array |