Add accounts and locations lookups
This commit is contained in:
4
scripts/bms.sh
Executable file → Normal file
4
scripts/bms.sh
Executable file → Normal file
@@ -15,6 +15,8 @@ Usage:
|
||||
bms tickets <subcommand> Manage tickets
|
||||
bms templates <resource> <sub> Browse ticket/note/timelog templates
|
||||
bms lookup <table> Fetch lookup tables (IDs for statuses, etc.)
|
||||
bms accounts List servicedesk accounts
|
||||
bms locations --account <id> List locations for an account
|
||||
|
||||
Tickets subcommands:
|
||||
list List/search tickets
|
||||
@@ -77,6 +79,8 @@ case "$cmd" in
|
||||
tickets) exec bash "${SCRIPT_DIR}/bms-tickets.sh" "$@" ;;
|
||||
templates) exec bash "${SCRIPT_DIR}/bms-templates.sh" "$@" ;;
|
||||
lookup) exec bash "${SCRIPT_DIR}/bms-lookup.sh" "$@" ;;
|
||||
accounts) exec bash "${SCRIPT_DIR}/bms-accounts.sh" "$@" ;;
|
||||
locations) exec bash "${SCRIPT_DIR}/bms-locations.sh" "$@" ;;
|
||||
help|-h|--help) usage ;;
|
||||
*)
|
||||
echo "Unknown command: $cmd" >&2
|
||||
|
||||
Reference in New Issue
Block a user