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
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { execSync } from 'child_process'
import { existsSync, writeFileSync } from 'fs'
import { LeafCommand } from 'furious-commander'
import fetch from 'node-fetch'
import { RootCommand } from '../root-command'
import { RootCommand } from './root-command'

const archTable = {
arm64: 'arm64',
Expand All @@ -16,8 +16,8 @@ const platformTable = {
linux: 'linux',
}

export class GetBee extends RootCommand implements LeafCommand {
public readonly name = 'get-bee'
export class Quickstart extends RootCommand implements LeafCommand {
public readonly name = 'quickstart'

public readonly description = 'Downloads the Bee binary for the current platform'

Expand Down
3 changes: 1 addition & 2 deletions src/command/utility/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { fileExists } from '../../utils'
import { CommandLog } from '../root-command/command-log'
import { Cid } from './cid'
import { CreateBatch } from './create-batch'
import { GetBee } from './get-bee'
import { Lock } from './lock'
import { Rchash } from './rchash'
import { Redeem } from './redeem'
Expand All @@ -16,7 +15,7 @@ export class Utility implements GroupCommand {

public readonly description = 'Utility commands related to Swarm and wallets'

public subCommandClasses = [Cid, Lock, Unlock, GetBee, Redeem, CreateBatch, Rchash]
public subCommandClasses = [Cid, Lock, Unlock, Redeem, CreateBatch, Rchash]
}

export async function createWallet(pathOrPrivateKey: string, console: CommandLog): Promise<Wallet> {
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Identity } from './command/identity'
import { Manifest } from './command/manifest'
import { Pinning } from './command/pinning'
import { Pss } from './command/pss'
import { Quickstart } from './command/quickstart'
import { Stake } from './command/stake'
import { Stamp } from './command/stamp'
import { Status } from './command/status'
Expand Down Expand Up @@ -131,4 +132,5 @@ export const rootCommandClasses = [
Wallet,
Utility,
Grantee,
Quickstart,
]
6 changes: 3 additions & 3 deletions test/coverage/coverage-summary.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{"total": {"lines":{"total":2682,"covered":1960,"skipped":0,"pct":73.07},"statements":{"total":2702,"covered":1973,"skipped":0,"pct":73.01},"functions":{"total":319,"covered":242,"skipped":0,"pct":75.86},"branches":{"total":569,"covered":302,"skipped":0,"pct":53.07},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/application.ts": {"lines":{"total":2,"covered":0,"skipped":0,"pct":0},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":0,"skipped":0,"pct":0},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/config.ts": {"lines":{"total":31,"covered":30,"skipped":0,"pct":96.77},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":31,"covered":30,"skipped":0,"pct":96.77},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/config.ts": {"lines":{"total":32,"covered":31,"skipped":0,"pct":96.87},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":32,"covered":31,"skipped":0,"pct":96.87},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/curl.ts": {"lines":{"total":24,"covered":24,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":25,"covered":25,"skipped":0,"pct":100},"branches":{"total":13,"covered":12,"skipped":0,"pct":92.3}}
,"/home/runner/work/swarm-cli/swarm-cli/src/index.ts": {"lines":{"total":16,"covered":0,"skipped":0,"pct":0},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":16,"covered":0,"skipped":0,"pct":0},"branches":{"total":3,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/printer.ts": {"lines":{"total":7,"covered":3,"skipped":0,"pct":42.85},"functions":{"total":4,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":3,"skipped":0,"pct":42.85},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/addresses.ts": {"lines":{"total":37,"covered":32,"skipped":0,"pct":86.48},"functions":{"total":6,"covered":5,"skipped":0,"pct":83.33},"statements":{"total":37,"covered":32,"skipped":0,"pct":86.48},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/download.ts": {"lines":{"total":35,"covered":28,"skipped":0,"pct":80},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":35,"covered":28,"skipped":0,"pct":80},"branches":{"total":11,"covered":4,"skipped":0,"pct":36.36}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/hash.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":10,"covered":8,"skipped":0,"pct":80},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/quickstart.ts": {"lines":{"total":37,"covered":10,"skipped":0,"pct":27.02},"functions":{"total":4,"covered":1,"skipped":0,"pct":25},"statements":{"total":37,"covered":10,"skipped":0,"pct":27.02},"branches":{"total":9,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/status.ts": {"lines":{"total":79,"covered":57,"skipped":0,"pct":72.15},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":79,"covered":57,"skipped":0,"pct":72.15},"branches":{"total":11,"covered":11,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/upload.ts": {"lines":{"total":212,"covered":147,"skipped":0,"pct":69.33},"functions":{"total":15,"covered":13,"skipped":0,"pct":86.66},"statements":{"total":213,"covered":148,"skipped":0,"pct":69.48},"branches":{"total":95,"covered":53,"skipped":0,"pct":55.78}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/cheque/cashout.ts": {"lines":{"total":32,"covered":30,"skipped":0,"pct":93.75},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":32,"covered":30,"skipped":0,"pct":93.75},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
Expand Down Expand Up @@ -75,8 +76,7 @@
,"/home/runner/work/swarm-cli/swarm-cli/src/command/stamp/topup.ts": {"lines":{"total":23,"covered":11,"skipped":0,"pct":47.82},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":23,"covered":11,"skipped":0,"pct":47.82},"branches":{"total":4,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/cid.ts": {"lines":{"total":13,"covered":8,"skipped":0,"pct":61.53},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":13,"covered":8,"skipped":0,"pct":61.53},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/create-batch.ts": {"lines":{"total":34,"covered":14,"skipped":0,"pct":41.17},"functions":{"total":3,"covered":1,"skipped":0,"pct":33.33},"statements":{"total":35,"covered":14,"skipped":0,"pct":40},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/get-bee.ts": {"lines":{"total":37,"covered":10,"skipped":0,"pct":27.02},"functions":{"total":4,"covered":1,"skipped":0,"pct":25},"statements":{"total":37,"covered":10,"skipped":0,"pct":27.02},"branches":{"total":9,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/index.ts": {"lines":{"total":23,"covered":15,"skipped":0,"pct":65.21},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":23,"covered":15,"skipped":0,"pct":65.21},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/index.ts": {"lines":{"total":22,"covered":14,"skipped":0,"pct":63.63},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":22,"covered":14,"skipped":0,"pct":63.63},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/lock.ts": {"lines":{"total":11,"covered":7,"skipped":0,"pct":63.63},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":11,"covered":7,"skipped":0,"pct":63.63},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/rchash.ts": {"lines":{"total":23,"covered":7,"skipped":0,"pct":30.43},"functions":{"total":3,"covered":1,"skipped":0,"pct":33.33},"statements":{"total":23,"covered":7,"skipped":0,"pct":30.43},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
,"/home/runner/work/swarm-cli/swarm-cli/src/command/utility/redeem.ts": {"lines":{"total":51,"covered":12,"skipped":0,"pct":23.52},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":52,"covered":12,"skipped":0,"pct":23.07},"branches":{"total":11,"covered":0,"skipped":0,"pct":0}}
Expand Down