kubo/cmd/ipfs2
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
..
.gitignore move new commands to new place 2014-11-14 03:16:05 -08:00
daemon.go core/commands2: Updated commands to new Run function API 2014-11-14 03:17:37 -08:00
equinox.yaml move new commands to new place 2014-11-14 03:16:05 -08:00
init.go rename variable 2014-11-14 03:19:58 -08:00
ipfs.go cmd/ipfs2: Added a 'commands' command for CLI root 2014-11-14 03:20:01 -08:00
ipfsHandler.go cmd/ipfs2: Added explanation comment to ipfsHandler 2014-11-14 03:17:40 -08:00
main.go cmd2: simplified main 2014-11-14 03:20:02 -08:00
Makefile move new commands to new place 2014-11-14 03:16:05 -08:00
README.md cmd/ipfs2: Updated readme 2014-11-14 03:17:40 -08:00
tour.go core/commands2: Use Argument constructors in commands 2014-11-14 03:17:39 -08:00

go-ipfs/cmd/ipfs

This is the ipfs commandline tool. For now, it's the main entry point to using IPFS. Use it.

> go build
> go install
> ipfs
ipfs - global versioned p2p merkledag file system

Basic commands:

    init          Initialize ipfs local configurationx
    add <path>    Add an object to ipfs
    cat <ref>     Show ipfs object data
    ls <ref>      List links from an object

Tool commands:

    config        Manage configuration
    update        Download and apply go-ipfs updates
    version       Show ipfs version information
    commands      List all available commands

Advanced Commands:

    mount         Mount an ipfs read-only mountpoint
    serve         Serve an interface to ipfs
    diag          Print diagnostics

Plumbing commands:

    block         Interact with raw blocks in the datastore
    object        Interact with raw dag nodes


Use "ipfs help <command>" for more information about a command.