Commit Graph

1380 Commits

Author SHA1 Message Date
Jeromy Johnson
dea67d2be6 Merge pull request #2662 from ipfs/feature/add-default-to-commands
Added Default to `commands` cmd
2016-05-13 15:08:02 -07:00
Jeromy Johnson
2297759ec4 Merge pull request #2668 from ipfs/feature/add-default-to-get
Added Default logic to `get` cmd
2016-05-13 14:58:38 -07:00
Jeromy Johnson
8f24275a87 Merge pull request #2676 from ipfs/feature/add-default-to-ping
Added Default to ping, cleaned up logic
2016-05-13 14:53:57 -07:00
Jeromy Johnson
a55bd460e8 Merge pull request #2670 from ipfs/feature/add-default-to-ls-headers
Added Default logic to `ls` cmd
2016-05-13 14:50:50 -07:00
Jeromy Johnson
e9bb0b4813 Merge pull request #2671 from ipfs/feature/mount_unix_long_help
Added a note about the default values
2016-05-13 14:47:24 -07:00
Jeromy Johnson
7610bf47fd Merge pull request #2666 from ipfs/feature/external-clean-up
Capitalize print statements, add period to `external`
2016-05-13 14:46:38 -07:00
Jeromy Johnson
927083e221 Merge pull request #2675 from ipfs/feature/change-pin-otions
pin ls: Remove count option, add Default to quiet
2016-05-13 14:46:12 -07:00
Jeromy Johnson
d4ce5f09e1 Merge pull request #2679 from ipfs/feature/add-default-false
Added Default false to all remaining options
2016-05-13 14:45:22 -07:00
Jeromy Johnson
efc6231241 Merge pull request #2682 from ipfs/feature/ping-go-syn
Updated synopsis for ping
2016-05-13 14:30:49 -07:00
Jeromy Johnson
d03bcd464a Merge pull request #2688 from ipfs/feature/2617-update-resolve
Updated resolve hash to Mars, added reference
2016-05-13 14:28:21 -07:00
Jeromy
a657ccf6c0 update deps to introduce yamux hang fix
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-13 13:42:46 -07:00
Richard Littauer
b356089daa Updated resolve hash to Mars, added reference
Closes #2617.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 14:53:12 -04:00
Richard Littauer
efc18a3e65 Updated synopsis for ping
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 13:48:19 -04:00
Richard Littauer
b01c3f5039 Also added to Root
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 12:08:40 -04:00
Richard Littauer
f52050de80 Added Default false to all remaining options
Specifically, to `repo`, `resolve`, `swarm`, and `version`. Part of #2484.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 12:02:47 -04:00
Richard Littauer
254620d3a2 Added Default to ping, cleaned up logic
Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:46:38 -04:00
Richard Littauer
f6a1be68ab pin ls: Remove count option, add Default to quiet
'count' is never referenced in the code, and adds nothing when run with `ipfs pin ls` currently. I have removed it; add it again when there is actual logic to reflect. Also, added a Default(false) to quiet.

Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-12 11:41:19 -04:00
Richard Littauer
fedf553be3 Added a note about the default values
The /ipfs and /ipns paths can be overridden by the options; this wasn't
in the help text for the options, but should be somewhere. Long help
seemed appropriate.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 17:21:00 -04:00
Richard Littauer
ba36b860dd Added Default logic to ls cmd
See #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 17:13:16 -04:00
Richard Littauer
26375df590 Added Default logic to get cmd
Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:47:55 -04:00
Richard Littauer
158eddcd7f Capitalize print statements, add period to external
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:20:15 -04:00
Richard Littauer
7fee408b6b Added Default to commands cmd
Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-11 16:03:35 -04:00
Jeromy
6359dc9d5e update libp2p with go-multiaddr and go-stream-muxer updates
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-10 16:06:28 -07:00
Richard Littauer
23108aaa5d Marshal log ls better
This uses a stringList to output each log command as an item in an array in an object called Strings, instead of using the MessageOutput func.

This closes #2636.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-06 19:31:57 -04:00
Kevin Atkinson
b84cbec2b6 Make blocks.Block an interface.
License: MIT
Signed-off-by: Kevin Atkinson <k@kevina.org>
2016-05-05 18:02:11 -04:00
Hector Sanjuan
fba1448556 Add "ipfs log ls" command
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:33:43 +02:00
Hector Sanjuan
57b494a70c Update go-log to 1.1.0 and fix calls to go-log.Uuid
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
2016-05-04 23:17:21 +02:00
SH
f3b0860c79 Merge remote-tracking branch 'upstream/master' 2016-04-30 21:30:44 +02:00
Jeromy Johnson
de6c65ba07 Merge pull request #2628 from ipfs/feature/note
Capitalized `NOTE`, first letter of following word
2016-04-29 15:31:26 -07:00
Richard Littauer
f60ae0a1b9 Capitalized NOTE, first letter of following word
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 16:57:19 -04:00
SH
2af48e6804 add NetBSD support
License: MIT
Signed-off-by: Stefan Hertenberger <github@hertenberger.bayern>
2016-04-29 22:49:54 +02:00
Richard Littauer
e375c8cbf7 Capitalized a, lowercased not
A should be capitalised, as it is a new clause; `not` should not be capitalized, as there is no value judgement (it is a statement), and the emphasis is offputting without adding any technical backing. I just do not think it is necessaary.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-29 13:34:17 -04:00
Jeromy Johnson
fed6212d51 Merge pull request #2622 from ipfs/feature/add-period
Added a period to repo fsck
2016-04-28 14:09:56 -07:00
Stephen Whitmore
0a45ada4ed CLI: discoverability and consistency (#2542)
* reduces help indent from 4 to 2 spaces

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* reduces horz/vert space taken by "ipfs" cmd

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* show subcommands on shorthelp

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Drops colons at the end of cmd headings.

This makes command headings consistent with the output of 'ipfs', which
does not include colons.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* more consistent output between short-/long-help

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Puts DESCRIPTION before SUBCOMMANDS.

Users likely want to understand what a command does before worrying
about its subcommands.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Keeps ipfs cmd from outputting its subcmds twice.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes redundant synopsis from "file"

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes extra whitespace from longhelp

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Consistent spacing whether SUBCMDS or not.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes redundant SUBCMD output from ipfs object.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes redundant synopsis from "name"

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Newline after Description only if it exists.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes redundant synopsis from "bootstrap"

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes redundant synopsis from "swarm"

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes trailing newline in ping help.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Prints shorthelp on parse error.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* tiny comment fixes

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* updates README usage

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Don't include extra whitespace if no .MoreHelp

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* description improvements

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Hides the obscure 'file' subcommand.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Splits 'ipfs daemon' into Short and Long help.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes redundant synopsis from "config"

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Wraps lines to keep from going over 80.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* specify repo separately

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* s/structure/hierarchy

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* missing .

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes trailing colon from 'usage' test.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Updates sharness test error messages.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes trailing colon from 'usage' test.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Updates add-symlink to use /bin/sh.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes "hierarchy".

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Updates "ipfs ping" synopsis.

* Updates t0040 with latest wording.

* Removes unnecessary daemon setup.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-28 14:08:32 -07:00
Richard Littauer
ae235caaec Added a period to repo fsck
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-28 17:07:46 -04:00
Jeromy
cffec77cea update libp2p with utp dep
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-04-27 14:10:54 -07:00
michael
46bcdce15d commands: repo fsck (#2597)
* Adds repo fsck subcommand

Fixes #2457

License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>

* Checks for error on file deletion

License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>

* Checks if node is online

License: MIT
Signed-off-by: Mike Pfister <pfista@gmail.com>

* Update error checking

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* Prevents command from running while daemon is running

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* Add newline to command output message

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* removing superfluous error

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* Adds sharness test for repo fsck command

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* Ignore warning if file doesn't exist

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* Updating message output

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* adding debug statements

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* update and add fsck sharness tests

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* updating comments

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* Use printf in test

Using printf prevents a newline from being printed to the api test file. When
the newline was present, multiaddr threw errors  trying to parse the api address
to an integer since the newline character was present.

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* updating tests

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>

* removing commented code

License: MIT
Signed-off-by: Michael Pfister <pfista@gmail.com>
2016-04-27 13:28:53 -07:00
Stephen Whitmore
5d25fc1f16 unix-friendly output for 'ipfs dht' commands (#2560)
* Cleans up 'ipfs dht findpeer' output

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Adds more docs for 'ipfs dht put'.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Write pretty peer ids for ipfs dht put.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Writes pretty peer ids for ipfs dht query.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Suppresses unrecognized event type for FinalPeer.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Improves helptext on dht commands.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Adds 'ipfs dht findpeer' sharness test.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Adds sharness tests for remaining DHT commands.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Uses bash tests rather than 'test' command.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes commented code.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes unneeded init_ipfs.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Tweaks iptb setup.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Tweaks wording on dht 'put' and 'get'.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes extraneous ).

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Removes apostrophe.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Tests the expected peer addresses.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Gets peer id using iptb.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Checks explicitly for common put/findprovs peers.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Sorts expected/actual findpeer results.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>

* Fix disconnect argument description

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>

* Fixes sort order in t0170-dht.sh.

License: MIT
Signed-off-by: Stephen Whitmore <noffle@ipfs.io>
2016-04-27 09:31:06 -07:00
Jeromy Johnson
8350a94544 Merge pull request #2519 from thomas-gardner/commands
commands/cli: fix parsing of incorrect permutations
2016-04-26 17:20:56 -07:00
Jeromy Johnson
7fe81dbef0 Merge pull request #2606 from ipfs/feature/diag-cmds-grammar
Fixed up comments for `diag cmds`
2016-04-26 17:20:49 -07:00
Jeromy Johnson
1676d0ca52 Merge pull request #2582 from ipfs/feature/refs-defaults
Added default values to refs
2016-04-26 17:11:11 -07:00
Richard Littauer
53c05ffd74 Added default values to refs
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-26 19:34:36 -04:00
Richard Littauer
4b4c81a37d Fixed up comments for diag cmds
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-26 19:31:42 -04:00
Richard Littauer
f99f2ba583 Fix disconnect argument description
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-04-20 13:23:17 -04:00
Jeromy Johnson
c87b92c7b7 Merge pull request #2591 from ipfs/fix/null-object-links
add omitempty to Object struct tags
2016-04-19 16:39:10 -07:00
Jeromy Johnson
d4622c4404 Merge pull request #2592 from ipfs/fix/object-diff-resolve
fix resolve call in object diff
2016-04-19 16:39:03 -07:00
Jeromy Johnson
b3690ead2a Merge pull request #2585 from ipfs/feature/repo-stat-comments
Small syntax changes to repo stat man
2016-04-19 16:14:06 -07:00
Jeromy Johnson
16b63e920a Merge pull request #2586 from ipfs/feature/interval-note
Added note to ipfs stats bw interval option
2016-04-19 16:13:46 -07:00
Jeromy Johnson
3e536fbc23 Merge pull request #2588 from ipfs/feature/swarm-disconnect-note
Added a note about swarm disconnect
2016-04-19 16:13:27 -07:00
Jeromy Johnson
42062a721f Merge pull request #2587 from ipfs/feature/alphabetize-swarm
Alphabetized swarm subcmds
2016-04-19 16:12:57 -07:00