|
| 1 | +pub const IROH_LONG_DESCRIPTION: &str = " |
| 2 | +Iroh is a next-generation implementation the Interplanetary File System (IPFS). |
| 3 | +IPFS is a networking protocol for exchanging content-addressed blocks of |
| 4 | +immutable data. 'content-addressed' means referring to data by the hash of it's |
| 5 | +content, which makes the reference both unique and verifiable. These two |
| 6 | +properties make it possible to get data from any node in the network that speaks |
| 7 | +the IPFS protocol, including IPFS content being served by other implementations |
| 8 | +of the protocol. |
| 9 | +
|
| 10 | +For more info see https://iroh.computer/docs"; |
| 11 | + |
| 12 | +pub const STATUS_LONG_DESCRIPTION: &str = " |
| 13 | +status reports the current operational setup of iroh. Use status as a go-to |
| 14 | +command for understanding where iroh commands are being processed. different |
| 15 | +ops configurations utilize different network and service implementations |
| 16 | +under the hood, which can lead to varying performance characteristics. |
| 17 | +
|
| 18 | +Status reports connectivity, which is either offline or online: |
| 19 | +
|
| 20 | + offline: iroh is not connected to any background process, all commands |
| 21 | + are one-off, any network connections are closed when a command |
| 22 | + completes. Some network duties may be delegated to remote hosts. |
| 23 | +
|
| 24 | + online: iroh has found a long-running process to issue commands to. Any |
| 25 | + comand issued will be deletegated to the long-running process as a |
| 26 | + remote procedure call |
| 27 | +
|
| 28 | +If iroh is online, status also reports the service configuration of the |
| 29 | +long running process, including the health of the configured subsystem(s). |
| 30 | +Possible configurations fall into two buckets: |
| 31 | +
|
| 32 | + one: Iroh is running with all services bundled into one single process, |
| 33 | + this setup is common in desktop enviornments. |
| 34 | +
|
| 35 | + cloud: Iroh is running with services split into separate processes, which |
| 36 | + are speaking to each other via remote procedure calls. |
| 37 | +
|
| 38 | +Use the --watch flag to continually poll for changes. |
| 39 | +
|
| 40 | +Status reports no metrics about the running system aside from current service |
| 41 | +health. Instead all metrics are emitted through uniform tracing collection & |
| 42 | +reporting, which is intended to be consumed by tools like prometheus and |
| 43 | +grafana. For more info on metrics collection, see |
| 44 | +https://iroh.computer/docs/metrics"; |
| 45 | + |
| 46 | +pub const GET_LONG_DESCRIPTION: &str = " |
| 47 | +Download file or directory specified by <ipfs-path> from IPFS into [path]. If |
| 48 | +path already exists and is a file then it's overwritten with the new downloaded |
| 49 | +file. If path already exists and is a directory, the command fails with an |
| 50 | +error. If path already exists, is a file and the downloaded data is a directory, |
| 51 | +that's an error. |
| 52 | +
|
| 53 | +By default, the output will be written to the working directory. If no file or |
| 54 | +directory name can be derived from the <ipfs-path>, the output will be written |
| 55 | +to the given path's CID. |
| 56 | +
|
| 57 | +If <ipfs-path> is already present in the iroh store, no network call will |
| 58 | +be made."; |
| 59 | + |
| 60 | +pub const P2P_CONNECT_LONG_DESCRIPTION: &str = " |
| 61 | +Attempts to open a new direct connection to a peer address. By default p2p |
| 62 | +continulously maintains an open set of peer connections based on requests & |
| 63 | +internal hueristics. Connect is useful in situations where it makes sense to |
| 64 | +manually force libp2p to dial a known peer. A common example includes when you |
| 65 | +know the multiaddr or peer ID of a peer that you would like to exchange data |
| 66 | +with. |
| 67 | +
|
| 68 | +The address format is in multiaddr format. For example: |
| 69 | +
|
| 70 | + > iroh p2p connect /ip4/104.131.131.82/tcp/4001/p2p/QmaCpDMGvV2BGHeYERUEnRQAwe3N8SzbUtfsmvsqQLuvuJ |
| 71 | +
|
| 72 | +for more info on multiaddrs see https://iroh.computer/docs/concepts#multiaddr |
| 73 | +
|
| 74 | +If a peer ID is provided, connect first perform a distribtued hash table (DHT) |
| 75 | +lookup to learn the address of the given peer ID before dialing."; |
| 76 | + |
| 77 | +pub const P2P_LOOKUP_LONG_DESCRIPTION: &str = " |
| 78 | +Takes as input a peer ID or address and prints the output of the libp2p-identify |
| 79 | +protocol. When provided with a peer ID, the address is looked up on the |
| 80 | +Network's Distributed Hash Table (DHT) before connecting to the node. When |
| 81 | +provided with a multiaddress, the connection is dialed directly. |
| 82 | +
|
| 83 | +Providing no <ADDR> argument will return your local node information."; |
0 commit comments