Lorenz Leutgeb
5bc2dc677b
repo: Move workspace crates into `crates` subdirectory
...
This keeps the top level of the repo cleaner, e.g.
<https://github.com/radicle-dev/heartwood > scrolls less and
<https://app.radicle.xyz/nodes/rosa.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5/ >
might show more files at the top level.
This way we also don't have to explicitly name all crates in
`Cargo.toml`.
2025-06-09 15:09:21 +02:00
Lorenz Leutgeb
5a2f26eaa7
cli/node/status: Redesign
...
- Print link direction.
- Shorten NIDs.
- Use single chars to indicate status, legend is provided via hint.
On nodes with only outgoing connections, link direction won't be very
interesting. But on seed nodes it sometimes *is* of interest in which
direction the connections are going.
Also, I hope that in the future we will enable more and more nodes to
connect directly to each other.
The table header "Dir." is an abbreviation for "Link Direction".
2025-05-22 10:45:32 +02:00
Lorenz Leutgeb
f58af8fef4
cli: Use `term::Table::header` where possible
2024-11-28 14:35:24 +01:00
Arnaud Bailly
0ecdc76422
cli: Improve `rad node logs` error message
...
If the rad node is spawned by systemd there won't be any logs file
to read and `rad node logs` command will fail with the standard
error message from fs.
2024-11-27 10:19:04 +01:00
cloudhead
0a7a9c2945
cli: Fix disconnection timestamp
...
It should show since when we've been disconnected.
2024-06-19 20:37:36 +02:00
cloudhead
30c9b0db0b
cli: Add `rad node debug` command
2024-05-21 16:00:30 +02:00
cloudhead
33be2a62da
cli: Improve error when `radicle-node` isn't found
2024-03-22 16:41:51 +01:00
cloudhead
9c9bbbe7bb
node: Expose listen addresses
2024-02-26 12:35:20 +01:00
cloudhead
8928c5ee26
cli: Fix node file rotation with `rad node start`
...
This was causing issues (error 22) on macOS and some Linux systems.
2024-02-05 16:26:55 +01:00
cloudhead
71bba29c9a
cli: Add log rotation to `node start`
...
Very simple log rotation with two files.
2024-01-31 14:23:43 +01:00
cloudhead
b5b9a55306
cli: Add `--path` option to `rad node start`
...
Useful for debugging and running nodes from different locations.
2024-01-31 13:40:13 +01:00
cloudhead
fd38d88e14
cli: Hint about how to start node
...
In some cases, we can hint to the user about how they can start their
node.
We also remove the `CallError` type that was redundant.
2024-01-12 11:20:42 +01:00
cloudhead
c8afda2ddf
cli: Don't discard radicle-node stderr output
2024-01-10 15:23:08 +01:00
cloudhead
87debf380e
cli: Improve passphrase handling
...
Reduce redundancy in passphrase functions and give better error message
when not using a TTY.
2023-12-13 12:29:12 +01:00
Alexis Sellier
af724eeb0d
cli: Add `node config` command
...
Shows the current (loaded) node configuration.
2023-09-18 11:14:19 +02:00
Alexis Sellier
579ddfe725
cli: Give passphrase error on prompt
...
Example:
✗ Invalid passphrase, please try again
? Passphrase: ***
2023-09-06 20:03:58 +02:00
Alexis Sellier
5040f33025
cli: Be less confusing when asking for passphrase
...
The previous error didn't really make sense.
2023-09-06 20:03:58 +02:00
cloudhead
a84555955d
cli: Add PID to `node start` message
...
We also use a spinner in case it takes longer.
2023-09-01 15:17:41 +02:00
cloudhead
0c43b05066
cli: Improve `rad node` output
2023-09-01 12:22:50 +02:00
cloudhead
fae518bca2
node: Improve `rad node connect` feedback
...
Only return once the connection is established or failed.
It's still not perfect, as several failure scenarios are not handled,
but it's an improvement.
2023-08-09 12:49:15 +02:00
cloudhead
260b1a428c
node: Move `address` field out of `State`
...
We move the session address to the top-level struct, since it's needed
in a bunch of places. This change is required for the rate-limiting
code that is coming next.
2023-08-09 12:41:21 +02:00
Alexis Sellier
693f0a2c44
node: Some small UX fixes
...
Fixes an error which said "invalid argument" the first time the node was
started.
2023-08-01 14:55:20 +02:00
Alexis Sellier
41bff1b3bb
node: Make user connections persistent
...
While the node is running, connections made via the `Connect` command
should be retried.
2023-07-26 12:52:11 +02:00
Alexis Sellier
edd70b701e
cli: Give hint on how to start node, when stopped
...
Also enable some tests that were disabled.
2023-07-20 10:40:24 +02:00
Alexis Sellier
f92308cf25
cli: Make key encryption optional
...
By leaving the passphrase prompt blank, users can create unencrypted
keys.
2023-07-20 10:40:15 +02:00
Alexis Sellier
e593191ae2
cli: Automatically remove control socket
...
Instead of requiring that `--force` be used manually, we check to make
sure the node is not running, and if so, pass `--force` to the node
process.
2023-07-20 10:39:36 +02:00
Alexis Sellier
1a1e63d998
node: Implement `sessions` command
...
Returns session information through the control socket.
We also update `rad node status` to display sessions.
2023-07-04 00:26:31 +02:00
Alexis Sellier
613e3e5269
cli: Show logs after `rad node start`
...
When the node is started, we show the first few log lines.
2023-06-29 18:45:16 +02:00
Alexis Sellier
2e6c9827a9
cli: Show logs in `rad node status`
2023-06-29 18:01:49 +02:00
Alexis Sellier
e32e28f8b4
cli: Implement `rad node stop`
2023-06-29 17:58:07 +02:00
Alexis Sellier
0d0d354d55
cli: Ask for passphrase upfront in `node start`
2023-06-29 15:02:08 +02:00
Alexis Sellier
ba9c5997b7
cli: Add `rad node logs` sub-command
...
Prints the last `n` lines and follows the log.
2023-06-29 14:58:11 +02:00
xphoniex
ac12a4deee
cli: Implement `rad node start` with support for deamonizing
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
2023-04-28 14:19:20 +02:00
Fintan Halpenny
ed985f6fe0
cli: rad node
...
This adds a rad node subcommand to the CLI.
The subcommand aims to fulfill the following requirements:
- Checking the node status (rad node status)
- Connecting to the node's control socket (rad node connect)
- Printing out our routing table (rad node routing)
- Printing out our tracking policies (rad node tracking)
The following are yet to be implemented:
- Starting the node (rad node start)
- Stopping the node (rad node stop)
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-03-07 15:38:41 +01:00