UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

53 lines (50 loc) 1.22 kB
import { list } from "./chunk-YKYM3NLB.js"; import { base_command_default } from "./chunk-3TBLURBG.js"; import { sendErrorToBugsnag } from "./chunk-AGY4NR7U.js"; import { require_lib } from "./chunk-3FBDJEGD.js"; import { __toESM, init_cjs_shims } from "./chunk-PKR7KJ6P.js"; // src/cli/commands/notifications/list.ts init_cjs_shims(); var import_core = __toESM(require_lib(), 1); var List = class _List extends base_command_default { static { this.description = "List current notifications configured for the CLI."; } static { this.hidden = !0; } static { this.flags = { "ignore-errors": import_core.Flags.boolean({ hidden: !1, description: "Don't fail if an error occurs.", env: "SHOPIFY_FLAG_IGNORE_ERRORS" }) }; } async run() { let { flags } = await this.parse(_List); try { await list(); } catch (error) { let message = "Error fetching notifications"; if (error instanceof Error && (message = message.concat(`: ${error.message}`)), await sendErrorToBugsnag(message, "expected_error"), !flags["ignore-errors"]) throw error; } } }; export { List }; //# sourceMappingURL=chunk-RHR64CQH.js.map