kubo/commands
Thomas Gardner 3e824412d9 commands/cli: fix parsing of incorrect permutations
parseOpts now does some preliminary path screening to prevent
command sequences like

	`ipfs <hash> cat`

from succeeding. The tests affected by this have been slightly altered,
but should be restored once parseOpts is decoupled from path analysis.

Command suggestion printing has also been factored into a single
function.

Fixes: #2501
License: MIT
Signed-off-by: Thomas Gardner <tmg@fastmail.com>
2016-04-05 21:53:21 +10:00
..
cli commands/cli: fix parsing of incorrect permutations 2016-04-05 21:53:21 +10:00
files trivial: various superficial fixes 2016-02-03 15:46:28 +10:00
http fix double transfer encoding head problem 2016-03-14 16:26:49 -07:00
argument.go commands: Added Recursive modifier to Argument 2014-11-18 02:13:54 -08:00
channelmarshaler.go allow channel marshaler to return errors from cmds.Response 2015-09-04 14:12:19 -07:00
command_test.go commands: Refactored Command#Run function signature to (req Request, res Response) 2015-01-23 18:29:29 -08:00
command.go Merge pull request #2256 from ipfs/feat/gx-libp2p 2016-02-05 16:52:02 -08:00
option_test.go add default option value support to commands lib 2016-03-04 10:58:27 -08:00
option.go add default option value support to commands lib 2016-03-04 10:58:27 -08:00
reqlog.go add command to change keep time for reqlog objects 2016-02-19 22:05:05 -08:00
request.go add default option value support to commands lib 2016-03-04 10:58:27 -08:00
response_test.go Replace 'var * bytes.Buffer' with '\1 := new(bytes.Buffer)' 2015-05-26 23:18:04 +07:00
response.go no newlines in json objects 2015-11-30 15:23:48 -08:00