Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
feat(cli): --migrate support
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Nov 6, 2019
1 parent ad79804 commit 78b64e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ const parser = yargs
type: 'string',
default: ''
})
.option('migrate', {
desc: 'Allows automatic migrations',
type: 'boolean',
default: false
})
.epilog(utils.ipfsPathHelp)
.demandCommand(1)
.fail((msg, err, yargs) => {
Expand Down
1 change: 1 addition & 0 deletions src/cli/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ exports.getIPFS = (argv, callback) => {
const IPFS = require('../core')
const node = new IPFS({
silent: argv.silent,
repoAutoMigrate: argv.migrate,
repo: exports.getRepoPath(),
init: false,
start: false,
Expand Down

0 comments on commit 78b64e6

Please sign in to comment.