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

fix(cli): fix the files API commands #451

Merged
merged 1 commit into from
Aug 29, 2016
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
5 changes: 2 additions & 3 deletions src/cli/commands/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
module.exports = {
command: 'files',

description: '',
description: 'Unixfs commands',

builder (yargs) {
return yargs
.commandDir('files')
},

handler (argv) {
}
handler (argv) {}
}
4 changes: 1 addition & 3 deletions src/cli/commands/files/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ function checkPath (inPath, recursive) {
return inPath
}

module.exports = command

const command = {
module.exports = {
command: 'add <file>',

describe: 'Add a file to IPFS using the UnixFS data format',
Expand Down