Skip to content

Commit ccf69dc

Browse files
slapec93Gergely Békési
andauthored
chore: remove rest of bee dev reference (#759)
Co-authored-by: Gergely Békési <gergely.bekesi@ethswarm.org>
1 parent b15874b commit ccf69dc

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

src/command/status.ts

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class Status extends RootCommand implements LeafCommand {
2828
const nodeInfo = await this.bee.getNodeInfo()
2929
this.console.all(createKeyValue('Mode', nodeInfo.beeMode))
3030

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

44-
if (nodeInfo.beeMode !== BeeModes.DEV) {
45-
this.console.all('')
46-
this.console.all(chalk.bold('Topology'))
47-
const topology = await this.bee.getTopology()
48-
this.console.all(createKeyValue('Connected Peers', topology.connected))
49-
this.console.all(createKeyValue('Population', topology.population))
50-
this.console.all(createKeyValue('Depth', topology.depth))
51-
}
44+
this.console.all('')
45+
this.console.all(chalk.bold('Topology'))
46+
const topology = await this.bee.getTopology()
47+
this.console.all(createKeyValue('Connected Peers', topology.connected))
48+
this.console.all(createKeyValue('Population', topology.population))
49+
this.console.all(createKeyValue('Depth', topology.depth))
5250

53-
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT && nodeInfo.beeMode !== BeeModes.DEV) {
51+
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT) {
5452
this.console.all('')
5553
this.console.all(chalk.bold('Wallet'))
5654
try {
@@ -63,7 +61,7 @@ export class Status extends RootCommand implements LeafCommand {
6361
}
6462
}
6563

66-
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT && nodeInfo.beeMode !== BeeModes.DEV) {
64+
if (nodeInfo.beeMode !== BeeModes.ULTRA_LIGHT) {
6765
this.console.all('')
6866
this.console.all(chalk.bold('Chequebook'))
6967
try {

src/config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,6 @@ export const yes: IOption<string[]> = {
9696
description: 'Agree to all prompts',
9797
}
9898

99-
export const dev: IOption<boolean> = {
100-
key: 'dev',
101-
description: 'Indicate that the connected Bee node is running in dev mode',
102-
type: 'boolean',
103-
default: false,
104-
}
105-
10699
export const optionParameters: IOption<any>[] = [
107100
beeApiUrl,
108101
configFolder,
@@ -114,7 +107,6 @@ export const optionParameters: IOption<any>[] = [
114107
curl,
115108
header,
116109
yes,
117-
dev,
118110
]
119111

120112
export const rootCommandClasses = [

0 commit comments

Comments
 (0)