Add accounts and locations lookups

This commit is contained in:
Marcus A.
2026-04-07 18:37:46 +00:00
parent fee2c181b3
commit c2ea080535
3 changed files with 146 additions and 0 deletions

4
scripts/bms.sh Executable file → Normal file
View 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