Commit Graph

1434 Commits

Author SHA1 Message Date
Richard Littauer
5593d776be stats: Aligned text to 78 ruler, fixed grammar error
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-06-01 15:32:41 +01:00
Jeromy Johnson
c814478fb9 Merge pull request #2773 from ipfs/feature/commands-flags
Fix commands --flags not showing flags via HTTP API
2016-05-31 16:32:20 -07:00
Jeromy Johnson
6a894d6e76 Merge pull request #2696 from ipfs/feature/Offline-2393
Offline daemon mode
2016-05-31 09:12:13 -07:00
Jakub Sztandera
a6d0fd287b Fix commands --flags not showing flags via HTTP API
It was caused by the cmds.Option struct being Interface not struct
The solution is to create struct and copy interesting data over.

Also removed the "ShowOptions" field from being sent via the HTTP API.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-31 16:55:37 +02:00
Jeromy
aae6a2c379 update libp2p to v3.2.3
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-30 22:14:21 -07:00
Jeromy Johnson
6c3350369e Merge pull request #2516 from Stebalien/protobuf-content-type
Correctly set the content type for `object get --encoding=protobuf`
2016-05-28 23:28:45 -07:00
Jakub Sztandera
e76a53717b Prevent repetative initalisations in offline mode
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Jakub Sztandera
a77fa94fdf Make errors more reasonable in case of node in offline mode
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-24 15:59:56 +02:00
Richard Littauer
03dd669430 Refactor progress and showProgressBar
License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 14:27:10 +01:00
Richard Littauer
6f796dc272 Add Defaults to ipfs add
I didn't bother with Chunker, because I think that is a much wider PR. These should all be solid, though. Redid some of the logic to make it smoother.

Part of #2484.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-21 12:37:37 +01:00
Jeromy Johnson
518f7e06a1 Merge pull request #2744 from ipfs/feature/Options-Default-2702
Allow to specify where to put default options in option desciption
2016-05-20 20:28:39 -07:00
Jakub Sztandera
679c0ae3ee Use one verbose flag description
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-19 21:38:50 +02:00
Jakub Sztandera
70342314ae Allow to specify where to put default options in option desciption
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-19 18:54:37 +02:00
Jeromy Johnson
f01461033d Merge pull request #2728 from ipfs/peers-total-by-transport
metrics: add transport label to p2p_peers_total
2016-05-18 14:57:48 -07:00
Jeromy Johnson
6f716463d2 Merge pull request #2706 from ipfs/feature/MFSStatsHashOnly
Add --format option to mfs stat command
2016-05-18 13:47:46 -07:00
Jeromy Johnson
2482dc8f84 Merge pull request #2713 from csasarak/swarm_verbose
Added a verbose option for swarm peers.
2016-05-18 13:44:38 -07:00
Lars Gierth
05cb7a1bc2 metrics: add transport label to p2p_peers_total
Gives us per-transport peers counts:

	ipfs_p2p_peers_total{transport="/ip4/tcp"} 25
	ipfs_p2p_peers_total{transport="/ip6/tcp"} 13
	ipfs_p2p_peers_total{transport="/ip6/udp/utp"} 17

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2016-05-18 22:30:52 +02:00
Chris Sasarak
584d49694e Updated verbose swarm to not ping peers.
License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-05-17 22:28:57 -04:00
Jeromy Johnson
414c0ccbc4 Merge pull request #2716 from ipfs/patch-add-link-paths
Fix #2715 and patch add-link paths
2016-05-17 11:43:11 -07:00
Jeromy
e22345ae65 update go-libp2p 3.2.2, nil maddr fixes
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-17 10:23:10 -07:00
Jakub Sztandera
130c08c3cd Make format logic look much better
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-17 16:32:46 +02:00
jbenet
9f79dde058 ipfs object patch add-link supports paths
previously, paths were not supported as link values.
this would not work, and now can:

    ipfs object patch $root add-link foo /ipfs/$hash/foo/bar

License: MIT
Signed-off-by: Juan Benet <juan@benet.ai>
2016-05-16 23:03:31 -07:00
Christopher Sasarak
762aded60e Added a verbose option for swarm peers.
This is used like 'ipfs swarm peers -v'. It prints out the normal peers
information, but also the latency of each peer

License: MIT
Signed-off-by: Chris Sasarak <chris.sasarak@gmail.com>
2016-05-16 20:55:05 -04:00
Jakub Sztandera
94f1922dc2 Incorporate better moreThanOne function
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-16 22:51:08 +02:00
Jakub Sztandera
49936895ff Add --format option to mfs stats command
also add --hash and --size of hash and size only formats

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-16 21:51:38 +02:00
Jeromy
23c8ed93fd update libp2p to v3.2.1
License: MIT
Signed-off-by: Jeromy <why@ipfs.io>
2016-05-16 11:22:36 -07:00
Jeromy Johnson
b0b1e0f1c1 Merge pull request #2681 from ipfs/feature/spruce-upstat
Add helptext, default logic to `ipfs stats`
2016-05-16 09:00:36 -07:00
Richard Littauer
8ee399fbeb Add helptext, default logic to ipfs stats
I've added: Synopsis, shortDescription, and longDescription for stats and stats bw.
I also added default(false) for poll and default("1s") for interval, and modified the logic to make it fit.

Part of #2484 and #2647.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-16 10:59:30 -04:00
Jeromy Johnson
f40127d23b Merge pull request #2669 from ipfs/feature/add-default-to-name
Added Default logic to `name` cmd, and local option
2016-05-15 18:37:50 -07:00
Christian Couder
39f23677f5 pin: use new constants instead of literal values
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
2016-05-15 18:18:29 +02:00
Jeromy Johnson
0b701e832a Merge pull request #2677 from ipfs/feature/add-default-to-publish
Added Default logic to publish
2016-05-14 15:29:03 -07:00
Jeromy Johnson
a7c5a6f6a7 Merge pull request #2656 from ipfs/feature/add-default-false-to-verbose-flags
Added Default(false) to verbose for `active` and `dht` cmds
2016-05-14 14:56:53 -07:00
Jakub Sztandera
7f61b3170f Add logic for copying ShortDes to LongDesc if it is not present
This is the best place for inserting it that I found.

Test in #2648 should be modified to run `Root.ProcessHelp()`.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2016-05-14 13:23:35 +02:00
Jeromy Johnson
28999f774c Merge pull request #2661 from ipfs/feature/add-default-to-bootstrap
Added Default to `bootstrap` cmd
2016-05-13 18:32:03 -07:00
Richard Littauer
bffd648935 Added Default to bootstrap cmd
Part of #2484.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:49:26 -04:00
Richard Littauer
90421f556f Added Default logic to refs
Not sure about the switch statement. There may be a more elegant solution.

Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:46:28 -04:00
Richard Littauer
fb03cb783b Added Default logic to name cmd, and local option
Added Default logic per #2484, and also added the local option back in, because it exists in the code and should be shown as helptext, at least.

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:38:49 -04:00
Richard Littauer
475d73088c Added Default logic to publish
Part of #2484

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 20:26:16 -04:00
Jeromy Johnson
7732411475 Merge pull request #2672 from kpcyrd/feature/cache-control-immutable
Set Cache-Control immutable
2016-05-13 16:01:43 -07:00
Jeromy Johnson
704dcb8c4a Merge pull request #2683 from ipfs/feature/update-file-helptext
Updated `file` helptext
2016-05-13 15:39:38 -07:00
Jeromy Johnson
b88c2c6cbc Merge pull request #2664 from ipfs/feature/add-default-to-diag
Added Default to `diag` cmd
2016-05-13 15:38:05 -07:00
Jeromy Johnson
d3930e2028 Merge pull request #2665 from ipfs/feature/add-default-to-dns
Added Default to `dns` cmd
2016-05-13 15:37:49 -07:00
Jeromy Johnson
fb87d2faf0 Merge pull request #2643 from RichardLitt/docs/lint-diff-text
Linted object diff help text
2016-05-13 15:24:52 -07:00
Jeromy Johnson
e67fdd534e Merge pull request #2674 from ipfs/feature/add-default-to-object-cmd
Added Default logic to object object and patch
2016-05-13 15:24:24 -07:00
Jeromy Johnson
df1ac97cfa Merge pull request #2663 from ipfs/feature/add-default-to-config
Added Default to `config` cmd
2016-05-13 15:16:07 -07:00
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
Richard Littauer
185619f689 Updated file helptext
Part of #2647

License: MIT
Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
2016-05-13 17:54:06 -04: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