Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
refactor "blast node start"
Browse files Browse the repository at this point in the history
  • Loading branch information
aemil145 committed Mar 1, 2022
1 parent c60d1af commit 295bddb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,10 @@ To start a fresh local Cudos node run
blast node start
```
or you can leave the current terminal window free by running the local node in background. To do this use `--daemon` or `-d`.
or you can show the node logging output in current terminal window. To do this use `--log` or `-l`.
```bash
blast node start -d
blast node start -l
```
To see how to manage local node accounts go [here](#managing-accounts).
Expand Down
6 changes: 3 additions & 3 deletions packages/blast-cmd/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ const nodeInfo = {
describe: 'Manage a local CUDOS node',
builder: (yargs) => {
yargs.command('start', 'Start a fresh local node', () => {
yargs.option('daemon', {
alias: 'd',
yargs.option('log', {
alias: 'l',
type: 'boolean',
default: false,
description: 'Run the node in background'
description: 'Continuously output the node logs'
})
}, node.startNodeCmd)
.command('stop', 'Stop the running local node', () => {}, node.stopNodeCmd)
Expand Down
2 changes: 1 addition & 1 deletion packages/blast-cmd/node/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const BlastError = require('../../blast-utilities/blast-error')
const startNodeCmd = async function(argv) {
await checkNodeOffline()

if (argv.daemon) {
if (!argv.logs) {
executeCompose('up --build -d')
} else {
executeComposeAsync('up --build')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source ./packages/blast-tests/integration-tests/vars.sh

echo -n 'blast node start...'
cd template
blast node start -d &> /dev/null
blast node start &> /dev/null
cd ..
sleep 45
timer=30
Expand Down

0 comments on commit 295bddb

Please sign in to comment.