From 138f519018518f79664dbcc55eab43826fc0a424 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 29 Aug 2016 16:18:45 +0100 Subject: [PATCH] fix(cli): fix the files API commands --- src/cli/commands/files.js | 5 ++--- src/cli/commands/files/add.js | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cli/commands/files.js b/src/cli/commands/files.js index 0b63bdefb6..ea8b41e2eb 100644 --- a/src/cli/commands/files.js +++ b/src/cli/commands/files.js @@ -3,13 +3,12 @@ module.exports = { command: 'files', - description: '', + description: 'Unixfs commands', builder (yargs) { return yargs .commandDir('files') }, - handler (argv) { - } + handler (argv) {} } diff --git a/src/cli/commands/files/add.js b/src/cli/commands/files/add.js index 7350d15ad3..bb0c10fc08 100644 --- a/src/cli/commands/files/add.js +++ b/src/cli/commands/files/add.js @@ -34,9 +34,7 @@ function checkPath (inPath, recursive) { return inPath } -module.exports = command - -const command = { +module.exports = { command: 'add ', describe: 'Add a file to IPFS using the UnixFS data format',