Commit Graph

472 Commits

Author SHA1 Message Date
Juan Batiz-Benet
7596bcce2d cleaned up ipfs init 2014-11-15 22:50:42 -08:00
Juan Batiz-Benet
7806973e67 vendor manners 2014-11-15 22:21:52 -08:00
Juan Batiz-Benet
8cf765af33 daemon: listen for term signals 2014-11-15 22:11:11 -08:00
Jeromy
e857a5bc9f move default hash into ipfs2, committed on freemont troll 2014-11-15 18:28:54 -08:00
Jeromy
ab805f3382 add in a default file hash and cleaned up init functiona bit 2014-11-15 17:50:05 -08:00
Juan Batiz-Benet
3df1513ea6 cmds: fixed help stdio use 2014-11-15 09:04:49 -08:00
Brian Tiger Chow
162169af77 fix(2/main) respect IPFS_LOGGING == debug behvaior
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 02:10:53 -08:00
Brian Tiger Chow
e940643f20 docs
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 01:00:09 -08:00
Brian Tiger Chow
56d732f9b1 fix(2/main) s/preemptsUpdates/preemptsAutoUpdate
addresses...

https://github.com/jbenet/go-ipfs/pull/336#discussion_r20397834

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-15 00:39:28 -08:00
Brian Tiger Chow
408fadc8be fix(2/main) don't check for updates when running init
@jbenet @mappum

Yeah, there's some duplicated work. But there's also a separation of
concerns. In one case, we check to determine where the command should
run. In the other case, we check to determine which hooks should run.
Having these actions separated reduces complexity in a nice way.

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 17:04:54 -08:00
Brian Tiger Chow
eb5bb1daa8 feat(debugerror)
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

impl errorf

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

return a debug error

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 17:04:48 -08:00
Brian Tiger Chow
ee378e2fbd fix(test) tour content struct now exists
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:31:06 -08:00
Juan Batiz-Benet
fa8fc1aefc cmds2: check for updates 2014-11-14 03:20:46 -08:00
Matt Bell
1abe97617e main: Pass Stdin to CLI request parser 2014-11-14 03:20:11 -08:00
Brian Tiger Chow
8b07b35467 ignore binary
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
Juan Batiz-Benet
e0ba14c0eb cmds2: use cmdDetails on level cmds 2014-11-14 03:20:09 -08:00
Brian Tiger Chow
0eeed7cc68 add string method to command details
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:09 -08:00
Brian Tiger Chow
65eb1d86fa rm todos
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
Brian Tiger Chow
476aab9552 rm unused tests
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
Brian Tiger Chow
1065ae45aa s/number/id "the id of the topic you'd like to tour"
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
Brian Tiger Chow
f1c20b4e3a don't use the marshaler
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:08 -08:00
Brian Tiger Chow
35da357dc5 fix(tour) patch up and verify tour output
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
Brian Tiger Chow
c99e9e6000 feat(details) add funcs to negate negations
not immediately useful, but nice to have

tagging you to make sure i didn't make a mistake here @jbenet

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
Brian Tiger Chow
5c4fa5a783 feat(tour) show list of topics when user tries to view topic that doesn't exist
eg.

```
ipfs2 (cmd-ref-part2) λ. go build ./...; ./ipfs2 tour 0

Tour 0 - Hello Mars

Hello Mars

ipfs2 (cmd-ref-part2) λ. go build ./...; ./ipfs2 tour 10

ERROR
    no topic with id: 10

TOPICS

    0 - Hello Mars
    0.1 - Hello Mars 2

```
2014-11-14 03:20:07 -08:00
Juan Batiz-Benet
afa5eedb44 cmds2: commandShouldRunOnDaemon
This commit adds the pretty-complicated decision function
to check whether a command should run on the daemon.

@maybebtc @mappum double check the logic?
2014-11-14 03:20:07 -08:00
Juan Batiz-Benet
bb8d4ebd6b cmds2: cmdDetailsMap 2014-11-14 03:20:07 -08:00
Brian Tiger Chow
ca2828f33c feat(commands) add ClientError(msg) helper and use it to return a fancy error to the client in the tour
@jbenet this exists now

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
Brian Tiger Chow
c5e75f91a6 tests(2/main) errClient
Discovered this quirk about interfaces.

@whyrusleeping
@mappum
@jbenet

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:07 -08:00
Brian Tiger Chow
0a93f9d764 style(tour) newline at the end
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:06 -08:00
Matt Bell
db361d9403 commands/cli: Made Parse return an error if request has unrecognized options 2014-11-14 03:20:06 -08:00
Matt Bell
815efdb125 daemon: Added a ShortDescription 2014-11-14 03:20:06 -08:00
Brian Tiger Chow
ff6c4ce6a4 test(tour) ensure template renders without failure
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-14 03:20:06 -08:00
Juan Batiz-Benet
047d2e2d62 cmd2: Marshaller -> Marshaler (see golang/encoding)
Also:
- map[cmds.EncodingType]cmds.Marshaller -> MarshalMap

cc @mappum @maybebtc
2014-11-14 03:20:05 -08:00
Matt Bell
c973776049 main: Fixed logical error in remote/local check 2014-11-14 03:20:05 -08:00
Matt Bell
e700b16576 Ported remaining command helptext to HelpText struct 2014-11-14 03:20:05 -08:00
Matt Bell
b4735eb10b main: Test if commands are local-only when choosing daemon vs. local 2014-11-14 03:20:04 -08:00
Matt Bell
188bf779db Removed cmdInvocation.root 2014-11-14 03:20:03 -08:00
Matt Bell
9afb85714a commands/cli: Don't return root in Parse 2014-11-14 03:20:03 -08:00
Matt Bell
b7b15b8b30 cmd/ipfs2: Added isLocal function for testing if a command is local only 2014-11-14 03:20:03 -08:00
Matt Bell
2dd6f24157 core/commands2: Refactored some commands to HelpText struct for helptext fields 2014-11-14 03:20:03 -08:00
Matt Bell
2fd8f39c65 cmd/ipfs2: Added comments to explain purpose of CLI root 2014-11-14 03:20:03 -08:00
Juan Batiz-Benet
7daf888902 cmds2: handle error return codes 2014-11-14 03:20:03 -08:00
Juan Batiz-Benet
d18902df27 cmds2: changed how the ctx.Node works 2014-11-14 03:20:02 -08:00
Juan Batiz-Benet
3352aeee15 cmds2: fixed show help on root + noncallable 2014-11-14 03:20:02 -08:00
Juan Batiz-Benet
f738e899c2 cmd2: simplified main
Attention @maybebtc @mappum

I cleaned up + simplified the main flow. Now, all printing
is contained inside main itself! (:cheer:). I do this with
the help of a cmdInvocation struct that has both
a Parse and Run. The only major clunkiness left is that the
"CallCommand" is still its own function. But *shrug*.

Please test it works as we would expect. i changed much of
the flow, so likely that i missed a complicated edge case.

main roadmap:
- parse the commandline to get a cmdInvocation
- if user requests, help, print it and exit.
- run the command invocation
- output the response
- if anything fails, print error, maybe with help
2014-11-14 03:20:02 -08:00
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
Brian Tiger Chow
084ffd97aa fix(cli) tear down node 2014-11-14 03:17:30 -08:00
Matt Bell
1cb94a1231 cmd/ipfs2: Display subcommand help text on parse error 2014-11-14 03:17:27 -08:00
Brian Tiger Chow
d180832f3e add todo 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
8960a4ff8b TODO(ipfs2/init) add FIXME note as a reminder about
c6b74207bc
2014-11-14 03:17:26 -08:00
Brian Tiger Chow
79015e7891 fix(ipfs2/init) declarative 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
e305e45e81 fix(ipfs2/init) identity 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
62fd9166ce fix(ipfs2/init) datastore 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
542c2a2da3 fix(ipfs2/init) extract bootstrap 2014-11-14 03:17:26 -08:00
Brian Tiger Chow
96fd88e916 feat(ipfs2/main) port mem-profiling from previous main
was added 5 days ago in...

7510ef2081
2014-11-14 03:17:26 -08:00
Brian Tiger Chow
46f1afbe08 refactor(init) re-order 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
a1e738e297 docs(init) rename filename var 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
8d7ebcb582 refactor(init) rename extracted method 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
3b7983e028 refactor(init) extract response 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
1b5e4032ff refactor(init) extract context 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
f3048ab712 refactor(init) extract bits flag 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
630b88d227 refactor(init) extract force flag 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
b987c99eea refactor(init) extract dspath 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
3c8657503c refactor(init) check file after 2014-11-14 03:17:25 -08:00
Brian Tiger Chow
d894924152 refactor(init) return an error 2014-11-14 03:17:24 -08:00
Brian Tiger Chow
faf6454df6 refactor(init) extract method 2014-11-14 03:17:24 -08:00
Brian Tiger Chow
fee3b0dd31 +2 characters for readability 2014-11-14 03:17:24 -08:00
Brian Tiger Chow
c67e377162 docs(ipfs2/daemon) add some copy
can replace if desired, but at least it's not an end-user TODO
2014-11-14 03:17:24 -08:00
Matt Bell
283c175fc4 commands/http: Refactored API to a Client object that takes a string address 2014-11-14 03:17:24 -08:00
Matt Bell
f95476c19a commands: Allow overriding marshaller for any encoding type 2014-11-14 03:17:24 -08:00
Matt Bell
3dd7a9a5c8 cmd/ipfs2: Broke up main into subfunctions 2014-11-14 03:17:23 -08:00
Matt Bell
7c1e45786a cmd/ipfs2: Stricter option type coercion in main 2014-11-14 03:17:23 -08:00
Matt Bell
7d4d55a84d commands/http: Unexported Handler fields and created constructor 2014-11-14 03:17:23 -08:00
Matt Bell
39a60e7f1d commands: Return a reader in a Response#Reader method, instead of making Response implementing io.Reader 2014-11-14 03:17:23 -08:00
Matt Bell
6bab1f47fb commands: Removed inpout stream from Request 2014-11-14 03:17:22 -08:00
Matt Bell
d8afd9a9bb cmd/ipfs: Show usage text if input fails to parse 2014-11-14 03:17:21 -08:00
Matt Bell
cac8844b8d cmd/ipfs: Reverted back to secondary CLI root command 2014-11-14 03:17:21 -08:00
Matt Bell
9356e1a0a1 cmd/ipfs: Moved private commands to core/commands2 2014-11-14 03:17:21 -08:00
Matt Bell
fb12530822 cmd/ipfs2: Got rid of second root command in favor of Command#Private 2014-11-14 03:17:21 -08:00
Matt Bell
e01f1ba8a1 cmd/ipfs2: daemon command: Handle lock before initializing node 2014-11-14 03:17:20 -08:00
Matt Bell
decda21889 cmd/ipfs2: Changed command variable naming convention 2014-11-14 03:17:20 -08:00
Matt Bell
9fb20dabb3 cmd/ipfs2: Added init command 2014-11-14 03:17:20 -08:00
Brian Tiger Chow
db7a42e73c refactor(cmd/ipfs2) rename to match cmd/ipfs1 2014-11-14 03:17:20 -08:00
Brian Tiger Chow
b3e7cbb9a5 refactor(commands) swap argument order to match Http(w, r) idiom 2014-11-14 03:17:20 -08:00
Brian Tiger Chow
026c30fa71 fix(cmd/ipfs2/daemon) imports 2014-11-14 03:16:06 -08:00
Brian Tiger Chow
93e959a459 fix(cmd/ipfs2, commands) imports 2014-11-14 03:16:05 -08:00
Brian Tiger Chow
510a4a9093 move new commands to new place 2014-11-14 03:16:05 -08:00
Brian Tiger Chow
3d9331512d move originals back to ipfs 2014-11-14 03:16:05 -08:00
Brian Tiger Chow
b3a96d2bb3 move temporarily 2014-11-14 03:16:04 -08:00
Matt Bell
aea52132cb cmd/ipfs: Initialize IpfsNode when running locally or starting daemon 2014-11-14 03:16:04 -08:00
Matt Bell
54587897c1 cmd/ipfs: Default to plaintext encoding if avilable, otherwise JSON 2014-11-14 03:16:04 -08:00
Matt Bell
b3ff407d38 commands: Gave Requests a reference to the command they are being called on 2014-11-14 03:16:04 -08:00
Matt Bell
4bbd579068 cmd/ipfs: Added 'local' flag to call command locally instead of executing on daemon 2014-11-14 03:16:03 -08:00
Matt Bell
063cb536df cmd/ipfs: Display help text when help flag is set 2014-11-14 03:16:03 -08:00
Matt Bell
8edfee2a58 cmd/ipfs: Removed new commands (to be refactored later) 2014-11-14 03:16:03 -08:00
Matt Bell
c679783084 cmd/ipfs: Log to show API server is listening 2014-11-14 03:16:03 -08:00
Matt Bell
0b73a48b84 commands/http: Made Handler set request contexts 2014-11-14 03:16:03 -08:00
Matt Bell
3f4da97c58 cmd/ipfs: Use daemon lock functions 2014-11-14 03:16:03 -08:00
Matt Bell
7efa174f2d cmd/ipfs: Made daemon command use request context instead of loading config 2014-11-14 03:16:03 -08:00
Matt Bell
2419ffdb2d cmd/ipfs: Load config and put in request context 2014-11-14 03:16:02 -08:00
Matt Bell
7d53e736cf cmd/ipfs: Added getConfig function 2014-11-14 03:16:02 -08:00
Matt Bell
cf60fdd3d9 cmd/ipfs: Load API address from config 2014-11-14 03:16:02 -08:00
Matt Bell
e2ed10b85b cmd/ipfs: Use lock to check if daemon is running, if not then run command locally 2014-11-14 03:16:02 -08:00
Matt Bell
e011d950bb cmd/ipfs: Obtain lock when starting daemon 2014-11-14 03:16:02 -08:00
Matt Bell
d87aad1e3a cmd/ipfs: Do command option conversion in CLI entry point 2014-11-14 03:16:02 -08:00
Matt Bell
b4fc0dba96 cmd/ipfs: Added basic daemon command 2014-11-14 03:16:02 -08:00
Matt Bell
e82532c7d1 cmd/ipfs: Added ipfs.exe to .gitignore 2014-11-14 03:16:02 -08:00
Matt Bell
36bdc456d2 commands/http: Moved HTTP RPC into commands/http package 2014-11-14 03:16:01 -08:00
Matt Bell
201ad30a7b cmd/ipfs: Run CLI-specific subcommands locally in CLI entry point 2014-11-14 03:16:01 -08:00
Matt Bell
ccfb10dde0 cmd/ipfs: Added root command for CLI-specific subcommands (init, daemon, etc.) 2014-11-14 03:16:01 -08:00
Matt Bell
c89826c1ef cmd/ipfs: Added HTTP RPC client to entry point 2014-11-14 03:16:01 -08:00
Matt Bell
26495b799d cmd/ipfs: Deleted existing CLI commands (to be refactored for the commands API) 2014-11-14 03:16:01 -08:00
Matt Bell
3e062f6e1e cmd/ipfs: Rewrote entry point to invoke commands via new command API 2014-11-14 03:16:01 -08:00
Brian Tiger Chow
d1fa4bd9b5 copy to old location 2014-11-14 03:16:00 -08:00
Brian Tiger Chow
bc6800035b move ipfs commands 2014-11-14 03:16:00 -08:00
Brian Tiger Chow
67bc9cc89d feat(init) display peer id in init command
use case:

Just configured and installed a node.

benefits:

1) reduces friction when setting up a new node

2) reveals useful details about the workings of the system. It's the
user's first encounter with her node's identity. The tour can build on
the user's knowledge.

```
ipfs (maybebtc-november) λ. ipfs init -f
initializing ipfs node at /Users/btc/.go-ipfs
generating key pair
peer identity: QmcRbn41Vc2CvbpLYfN36mAWusErKWvAAHbq92LPra2gFT
```
2014-11-05 10:15:17 -08:00
Juan Batiz-Benet
c6b74207bc config/init: init Version with CheckPeriod #265 2014-11-04 19:15:25 -08:00
Juan Batiz-Benet
866c2c8915 updates + config: moved location of current version number 2014-11-04 18:58:15 -08:00
Juan Batiz-Benet
3eb43d1cb4 mount: darwin osx fuse check fix
committed my test case accidentally :(
2014-11-01 22:38:13 -07:00
Juan Batiz-Benet
7972f3a7ee fixed osx fuse checks 2014-11-01 22:38:12 -07:00
Jeromy
c7ef55a450 move OSX specific calls to build tagged files 2014-10-31 19:46:42 +00:00
Juan Batiz-Benet
ca1bf26744 check osxfuse version. Fixes #202. 2014-10-31 10:10:12 -07:00
Brian Tiger Chow
7510ef2081 feat(cmd/ipfs1) add mem profiling in debug mode
TODO add memory profiling to ipfs2
2014-10-29 18:24:32 -07:00
Brian Tiger Chow
1e847059bc style(cmd/ipfs/pprof) move defer close to initialization 2014-10-29 18:24:32 -07:00
Juan Batiz-Benet
0ee4b3ec77 tour list: left justify 2014-10-26 10:03:38 -07:00
Juan Batiz-Benet
6f7bab389e tour: command 2014-10-26 08:32:08 -07:00
Juan Batiz-Benet
d8eb8b1191 ipfs cmd help now shows update
+ reorder of plumbing
2014-10-22 15:22:01 -07:00
Henry
4f42a26836 fixed --force flag for shutdown after update 2014-10-22 12:42:13 +02:00
Henry
0a0c38fb91 using @jbenet's industrial lipstick to clean this up 2014-10-22 11:25:30 +02:00
Henry
0115d1e0de respect cfg.Version.Check 2014-10-22 11:25:30 +02:00
Henry
cb73ea7ba4 removed duplicate logic 2014-10-22 11:25:30 +02:00
Henry
81f84d6cea updated error messages and explicit import names 2014-10-22 11:25:30 +02:00
Henry
8d41021b89 check AutoUpdate settings and apply 2014-10-22 11:25:30 +02:00
Henry
7ddf3836d0 implemented manual check and update (with signature verification) 2014-10-22 11:25:30 +02:00
Henry
5fa3053e19 added command stubs 2014-10-22 11:24:34 +02:00
Henry
2806260f5c use inconshreveable's go-update to check for updates 2014-10-22 11:24:34 +02:00
Jeromy
65385b37ea fix rm flags 2014-10-22 00:28:41 -07:00
Jeromy
6f750572cd add lock to pinner and rework cli 2014-10-22 00:28:41 -07:00
Jeromy
31b0ff0307 add testing for pins 2014-10-22 00:28:41 -07:00
Juan Batiz-Benet
9e3bfa28bb Merge pull request #185 from cryptix/cmdObjects
object plumbing commands
2014-10-19 16:58:47 -07:00
Juan Batiz-Benet
e989d6febe move IDFromPubKey to peer pkg 2014-10-18 04:28:26 -07:00
Juan Batiz-Benet
d2671afd66 command help spacing 2014-10-18 04:28:23 -07:00
Henry
02659c68b6 fix IPFS_DEBUG (was set after SetupLogging) 2014-10-18 12:03:47 +02:00
Henry
e735addbb2 object plumbing commands 2014-10-18 04:35:12 +02:00
Henry
0631a39492 cleaned up SetupLogging() 2014-10-15 14:23:54 +02:00
Henry
0557b1052d updated cmdIpfsLog help text 2014-10-15 14:04:46 +02:00
Henry
ea76b66b7f output these errors directly to the user 2014-10-15 14:00:03 +02:00
Henry
db1ac7499a added help about wildcard 2014-10-15 13:36:14 +02:00
Henry
3455846b35 add log command 2014-10-15 13:18:00 +02:00
Henry
c98b0e83b4 use log.Error() config.PathRoot() and CmdIpfs.Dispatch() err 2014-10-15 13:18:00 +02:00
Juan Batiz-Benet
8f1c12efe0 addCmd -> nameCmd
Thanks to @cryptix
2014-10-14 03:15:02 -07:00