diff options
Diffstat (limited to 'gsxcl')
-rwxr-xr-x | gsxcl | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -39,7 +39,7 @@ usage: gsxcl -s sold-to -u username -p password [-r region] [-e environment] [-f Defaults to production -f format the output format. Either print_r (default), json, xml or csv -d data data for the query (serial number, order confirmation, repair number, EEE code, etc - Defaults to this machine's serial number + Defaults to this machine's serial number. Or path to a JSON file. noun one of: {$verbs_str} verb one of: {$nouns_str} @@ -122,6 +122,11 @@ switch( $noun ) { case 'status': $result = $gsx->repairStatus( $query ); break; + case 'create': + $json = file_get_contents( $opts['d'] ); + $data = json_decode( $json, TRUE ); + $result = $gsx->createCarryInRepair( $data ); + break; } case 'model': |