Skip to content

Commit

Permalink
Improved help content.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashley Davis committed Jun 15, 2021
1 parent 19c8758 commit 6e94729
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/integrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ const command: ICommandDesc = {
integrationsDisableCommand,
],
help: {
usage: "opsgenie integrations",
description: "Prints open Opsgenie integrations to the terminal.",
usage: "opsgenie integrations [<command>]",
description: "Prints open Opsgenie integrations to the terminal. By default this command lists integrations.",
},
};

Expand Down
20 changes: 19 additions & 1 deletion src/commands/integrations/disable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,25 @@ const command: ICommandDesc = {
constructor: IntegrationsDisableCommand,
help: {
usage: "opsgenie integrations disable [options]",
description: "Prints open Opsgenie integrations to the terminal.",
description: "Disables Opsgenie integrations by id, name or regular expression",
options: [
{
name: "--id=<id>",
description: "Sets the id of the integration to disable."
},
{
name: "--id=<name>",
description: "Sets the name of the integration to disable."
},
{
name: "--regex=<regex>",
description: "Disable integrations by matching name against the regular expression.",
},
{
name: "--dry-run",
description: "Prints the names of integrations that would be affected, but doesn't actually make any changes.",
},
],
},
};

Expand Down
20 changes: 19 additions & 1 deletion src/commands/integrations/enable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,25 @@ const command: ICommandDesc = {
constructor: IntegrationsEnableCommand,
help: {
usage: "opsgenie integrations enable [options]",
description: "Enables Opsgenie integrations.",
description: "Enables Opsgenie integrations by id, name or regular expression",
options: [
{
name: "--id=<id>",
description: "Sets the id of the integration to enable."
},
{
name: "--id=<name>",
description: "Sets the name of the integration to enable."
},
{
name: "--regex=<regex>",
description: "Enables integrations by matching name against the regular expression.",
},
{
name: "--dry-run",
description: "Prints the names of integrations that would be affected, but doesn't actually make any changes.",
},
],
},
};

Expand Down

0 comments on commit 6e94729

Please sign in to comment.