Matt Bell
092524fcbb
cmd/ipfs2: Added a 'commands' command for CLI root
2014-11-14 03:20:01 -08:00
Matt Bell
fd8b1930af
cmd/ipfs2: Copy subcommands from core/commands2 root into cmd/ipfs2 root
2014-11-14 03:20:01 -08:00
Brian Tiger Chow
4e740f63eb
docs(ipfs2/main)
...
@mappum
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:01 -08:00
Brian Tiger Chow
22a4cc7d30
fix(ipfs2) output info to logger when checking daemon status
2014-11-14 03:20:01 -08:00
Juan Batiz-Benet
a2d06b5f9a
cmds2: errHelpRequested error
2014-11-14 03:20:01 -08:00
Matt Bell
78bc748342
cmd/ipfs: Fixed bug where handleParseError sets error to nil
2014-11-14 03:19:59 -08:00
Juan Batiz-Benet
ec8be23cbc
cmds/main decomposed handleParseError
2014-11-14 03:19:59 -08:00
Brian Tiger Chow
7060e7dfe2
rename variable
2014-11-14 03:19:58 -08:00
Brian Tiger Chow
fed2f8d2c6
fix(2/main) option value signature
2014-11-14 03:19:58 -08:00
Brian Tiger Chow
013d98a35a
fix(2/init, 2/add) fix optionvalue signature
2014-11-14 03:19:58 -08:00
Matt Bell
7a505b44c7
Handle -h and --help differently (short text vs long text)
2014-11-14 03:17:42 -08:00
Matt Bell
c76a52e422
cmd/ipfs2: Show short help text instead for usage errors
2014-11-14 03:17:42 -08:00
Matt Bell
4970d8b5a3
commands/cli: Use template for helptext generation
2014-11-14 03:17:41 -08:00
Matt Bell
e23b537f32
Override root command help text
2014-11-14 03:17:41 -08:00
Matt Bell
b358bb3ffd
cmd/ipfs2: Added comment to explain default encoding logic
2014-11-14 03:17:40 -08:00
Matt Bell
aea2fce987
cmd/ipfs2: Added explanation comment to ipfsHandler
2014-11-14 03:17:40 -08:00
Matt Bell
4902361fd5
cmd/ipfs2: Updated readme
2014-11-14 03:17:40 -08:00
Matt Bell
c468a4dbf5
core/commands2: Use Argument constructors in commands
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
8b14012bba
refactor(ipfs2/main) rm exit
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
ad5ad912ce
refactor(ipfs2/main) use guard
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
74b38cb65f
refactor(ipfs2/main) change the way we handle profiling
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
d72af9c910
refactor(ipfs2/main) return err
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
9268bdd56e
refactor(ipfs2/main) replace with equivalent action
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
fa5ca3f27f
refactor(ipfs2/main) output response
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
cda68a19d0
refactor(ipfs2/main) return err
2014-11-14 03:17:39 -08:00
Brian Tiger Chow
13a90537d6
refactor(ipfs2/main)
...
* bring debug checking back to top level so we have more control over
CPU profiling.
* bring help text up to top level so we can exit from the program
at the top level instead of within an arbitrary function
2014-11-14 03:17:38 -08:00
Brian Tiger Chow
2473d2d720
refactor(ipfs2/main) same for debug
2014-11-14 03:17:38 -08:00
Brian Tiger Chow
28be8a6171
refactor(ipfs2/main) check err before
2014-11-14 03:17:38 -08:00
Brian Tiger Chow
f79f1267f7
refactor(ipfs2/main) split lines
2014-11-14 03:17:38 -08:00
Brian Tiger Chow
203a0723ba
refactor(ipfs2/main) return errors in main
2014-11-14 03:17:38 -08:00
Matt Bell
17c5923160
core/commands2: Fixed init option definition
2014-11-14 03:17:38 -08:00
Matt Bell
3e507f7c9f
commands: Changed option accessor API (Request#Option now returns an OptionValue)
2014-11-14 03:17:38 -08:00
Matt Bell
d700a2ce87
cmd/ipfs2: Cleaned up main option checking (no longer need temporary Request)
2014-11-14 03:17:37 -08:00
Matt Bell
8ee3e996cc
core/commands2: Use Option constructors in commands
2014-11-14 03:17:37 -08:00
Matt Bell
3e30093c2b
core/commands2: Updated commands to new Run function API
2014-11-14 03:17:37 -08:00
Brian Tiger Chow
f4d0b8baa0
clarity(util) ToReaders -> CastToReaders
2014-11-14 03:17:36 -08:00
Brian Tiger Chow
38a6d0ead0
fix(init) version
2014-11-14 03:17:36 -08:00
Brian Tiger Chow
8ffd27a6e1
fix(init) inline bootstrap peers
2014-11-14 03:17:36 -08:00
Matt Bell
b3ea49954a
cmd/ipfs2: Handle SIGTERM
2014-11-14 03:17:35 -08:00
Matt Bell
cc519c47a3
cmd/ipfs2: Ensure process exits smoothly
2014-11-14 03:17:35 -08:00
Matt Bell
35983b480a
cmd/ipfs2: Made '/ipfs' handler return more accurate HTTP response codes, resolves #287
2014-11-14 03:17:35 -08:00
Matt Bell
897e0f869f
cmds/ipfs2: Added '/ipfs' HTTP handling
2014-11-14 03:17:35 -08:00
Matt Bell
3d94e89dd1
cmd/ipfs2: Made error messages more visible
2014-11-14 03:17:34 -08:00
Matt Bell
165c69543b
cmd/ipfs2: Output generated help text on error or help flag
2014-11-14 03:17:34 -08:00
Matt Bell
2b8ef917b8
cmd/ipfs2: Added descriptions for 'init', 'tour'
2014-11-14 03:17:33 -08:00
Brian Tiger Chow
aa1c3cae4a
fix(tour) variadic -> false
2014-11-14 03:17:31 -08:00
Brian Tiger Chow
99d5098450
named imports
2014-11-14 03:17:31 -08:00
Matt Bell
7ead660738
cmd/ipfs2: Set all loggers to DEBUG level when running with 'debug' flag
2014-11-14 03:17:30 -08:00
Brian Tiger Chow
520240d385
feat(commands2/tour) impl
2014-11-14 03:17:30 -08:00
Brian Tiger Chow
c65b01c55c
fix(add) cast safely
2014-11-14 03:17:30 -08:00