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