Skip to content

Commit

Permalink
Adjusting topic for other 'spaces' subcommands for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sbosio committed May 8, 2024
1 parent 18ededf commit 0c993cd
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/spaces/outbound-rules/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {SpaceCompletion} from '@heroku-cli/command/lib/completions'
import {ProtocolCompletion} from '../../../lib/autocomplete/completions'

export default class Add extends Command {
static topic = 'outbound-rules'
static topic = 'spaces'
static aliases = ['outbound-rules:add']
static description = heredoc(`
Add outbound rules to a Private Space
Expand Down Expand Up @@ -38,7 +39,6 @@ export default class Add extends Command {
]

static hidden = true
static aliases = ['outbound-rules:add']
static flags = {
space: flags.string({
char: 's',
Expand Down
3 changes: 2 additions & 1 deletion packages/cli/src/commands/spaces/outbound-rules/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import * as Heroku from '@heroku-cli/schema'
import {SpaceCompletion} from '@heroku-cli/command/lib/completions'

export default class Index extends Command {
static topic = 'spaces'
static aliases = ['outbound-rules']
static description = heredoc(`
list Outbound Rules for a space
Outbound Rules are only available on Private Spaces.
Expand All @@ -18,7 +20,6 @@ export default class Index extends Command {
You can add specific rules that only allow your dyno to communicate with trusted hosts.
`)

static aliases = ['outbound-rules']
static hidden = true
static flags = {
space: flags.string({char: 's', description: 'space to get outbound rules from', completion: SpaceCompletion}),
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/spaces/outbound-rules/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import heredoc from 'tsheredoc'
import confirmCommand from '../../../lib/confirmCommand'

export default class Remove extends Command {
static topic = 'spaces'
static aliases = ['outbound-rules:remove']
static topic = 'outbound-rules'
static description = 'Remove a Rules from the list of Outbound Rules';
static examples = [heredoc(`
$ heroku outbound-rules:remove --space my-space 4
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/spaces/trusted-ips/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import * as Heroku from '@heroku-cli/schema'
import heredoc from 'tsheredoc'

export default class Add extends Command {
static topic = 'spaces'
static aliases = ['trusted-ips:add']
static topic = 'trusted-ips'
static description = heredoc(`
Add one range to the list of trusted IP ranges
Uses CIDR notation.`)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/spaces/trusted-ips/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import * as Heroku from '@heroku-cli/schema'
import heredoc from 'tsheredoc'

export default class Index extends Command {
static topic = 'spaces'
static aliases = ['trusted-ips']
static topic = 'trusted-ips'
static description = heredoc(`
list trusted IP ranges for a space
Trusted IP ranges are only available on Private Spaces.
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/spaces/trusted-ips/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import * as Heroku from '@heroku-cli/schema'
import heredoc from 'tsheredoc'

export default class Remove extends Command {
static topic = 'spaces'
static aliases = ['trusted-ips:remove']
static topic = 'trusted-ips'
static description = heredoc(`
Remove a range from the list of trusted IP ranges
Uses CIDR notation.`)
Expand Down

0 comments on commit 0c993cd

Please sign in to comment.