프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$c | array | BASH COLORS | |
$config | array | hangar.json |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | self | (derived class) |
public static getCommandStatic ( string $name, boolean $cache = true ) : |
||
$name | string | |
$cache | boolean | |
리턴 |
public getScreenSize ( ) : array | ||
리턴 | array | (int, int) |
final protected silentPrompt ( string $text = "Enter Password:" ) : string | ||
$text | string | |
리턴 | string |