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

Commit a0220ce

Browse files
committed
Revert "Enables stdin->process.argv only on selected commands"
This reverts commit ed3f719.
1 parent ed3f719 commit a0220ce

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"peer-book": "~0.3.1",
129129
"peer-id": "~0.8.2",
130130
"peer-info": "~0.8.3",
131-
"pipe-args": "^1.2.0",
131+
"pipe-args": "^1.0.1",
132132
"promisify-es6": "^1.0.2",
133133
"pull-file": "^1.0.0",
134134
"pull-paramap": "^1.2.1",

src/cli/bin.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,11 @@
22

33
'use strict'
44

5-
const pipe = require('pipe-args')
5+
require('pipe-args').load()
6+
const yargs = require('yargs')
67
const updateNotifier = require('update-notifier')
78
const readPkgUp = require('read-pkg-up')
89

9-
const enableStdin = [
10-
'files', 'path', 'object data', 'ref', 'domain-name', 'key', 'ipfs-path',
11-
'name', 'address', 'data', 'peer', 'recursive', 'default-config', 'peer ID'
12-
]
13-
14-
pipe.load({ commands: enableStdin })
15-
16-
const yargs = require('yargs')
17-
1810
const pkg = readPkgUp.sync({cwd: __dirname}).pkg
1911
updateNotifier({
2012
pkg,

0 commit comments

Comments
 (0)