Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing RemoteFlags on commands #5201

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ironfish-cli/src/commands/chain/blocks/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { BufferUtils, CurrencyUtils, TimeUtils } from '@ironfish/sdk'
import { Args } from '@oclif/core'
import { IronfishCommand } from '../../../command'
import { ColorFlag, ColorFlagKey } from '../../../flags'
import { ColorFlag, ColorFlagKey, RemoteFlags } from '../../../flags'
import * as ui from '../../../ui'

export default class BlockInfo extends IronfishCommand {
Expand All @@ -19,6 +19,7 @@ export default class BlockInfo extends IronfishCommand {
}

static flags = {
...RemoteFlags,
[ColorFlagKey]: ColorFlag,
}

Expand Down
3 changes: 2 additions & 1 deletion ironfish-cli/src/commands/chain/power.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
import { FileUtils } from '@ironfish/sdk'
import { Args, Flags } from '@oclif/core'
import { IronfishCommand } from '../../command'
import { ColorFlag, ColorFlagKey } from '../../flags'
import { ColorFlag, ColorFlagKey, RemoteFlags } from '../../flags'

export default class Power extends IronfishCommand {
static description = "show the network's mining power"
static enableJsonFlag = true

static flags = {
...RemoteFlags,
[ColorFlagKey]: ColorFlag,
history: Flags.integer({
required: false,
Expand Down
3 changes: 2 additions & 1 deletion ironfish-cli/src/commands/chain/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import { FileUtils, renderNetworkName } from '@ironfish/sdk'
import { IronfishCommand } from '../../command'
import { JsonFlags } from '../../flags'
import { JsonFlags, RemoteFlags } from '../../flags'
import * as ui from '../../ui'

export default class ChainStatus extends IronfishCommand {
Expand All @@ -12,6 +12,7 @@ export default class ChainStatus extends IronfishCommand {

static flags = {
...JsonFlags,
...RemoteFlags,
}

async start(): Promise<unknown> {
Expand Down