Skip to content
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
20 changes: 9 additions & 11 deletions src/command/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export class Status extends RootCommand implements LeafCommand {
const nodeInfo = await this.bee.getNodeInfo()
this.console.all(createKeyValue('Mode', nodeInfo.beeMode))

if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT && nodeInfo.beeMode !== BeeModes.DEV) {
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT) {
this.console.all('')
this.console.all(chalk.bold('Chainsync'))
const { block, chainTip, currentPrice } = await this.bee.getChainState()
Expand All @@ -41,16 +41,14 @@ export class Status extends RootCommand implements LeafCommand {
this.console.all(createKeyValue('Storage Price', currentPrice.toLocaleString() + ' PLUR / chunk / block'))
}

if (nodeInfo.beeMode !== BeeModes.DEV) {
this.console.all('')
this.console.all(chalk.bold('Topology'))
const topology = await this.bee.getTopology()
this.console.all(createKeyValue('Connected Peers', topology.connected))
this.console.all(createKeyValue('Population', topology.population))
this.console.all(createKeyValue('Depth', topology.depth))
}
this.console.all('')
this.console.all(chalk.bold('Topology'))
const topology = await this.bee.getTopology()
this.console.all(createKeyValue('Connected Peers', topology.connected))
this.console.all(createKeyValue('Population', topology.population))
this.console.all(createKeyValue('Depth', topology.depth))

if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT && nodeInfo.beeMode !== BeeModes.DEV) {
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT) {
this.console.all('')
this.console.all(chalk.bold('Wallet'))
try {
Expand All @@ -63,7 +61,7 @@ export class Status extends RootCommand implements LeafCommand {
}
}

if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT && nodeInfo.beeMode !== BeeModes.DEV) {
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT) {
this.console.all('')
this.console.all(chalk.bold('Chequebook'))
try {
Expand Down
8 changes: 0 additions & 8 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,7 @@
description: 'Agree to all prompts',
}

export const dev: IOption<boolean> = {
key: 'dev',
description: 'Indicate that the connected Bee node is running in dev mode',
type: 'boolean',
default: false,
}

export const optionParameters: IOption<any>[] = [

Check warning on line 99 in src/config.ts

View workflow job for this annotation

GitHub Actions / check (18.x)

Unexpected any. Specify a different type
beeApiUrl,
configFolder,
configFile,
Expand All @@ -114,7 +107,6 @@
curl,
header,
yes,
dev,
]

export const rootCommandClasses = [
Expand Down
Loading