mirror of
https://github.com/tonarino/innernet.git
synced 2026-06-20 01:17:25 +02:00
ab3f99d09e
* Unify public-key truncation length to 10 chars in `show` The `--short` mode previously truncated public keys to 6 characters while the default mode used 10. Changed both to consistently show 10 characters. Co-authored-by: opencode (big-pickle) <agent@opencode.ai> Prompts used in this session: - unify the length to which the public key is truncated in the show subcommand when called with --short and without (currently it is 6 and 10 characters respectively), make it 10 unconditionally. - commit the changes, write a nice commit message including a disclosure that this was written by an agent and include the prompts used in this session so far * Print full public keys with global --verbose flag When `innernet -v show` is used (or `-vv` etc.), print peers' public keys in full instead of truncating to 10 characters. Apply this regardless of the `-s`/`--short` or `-t`/`--tree` subcommand flags. Resolves https://github.com/tonarino/innernet/issues/344 Co-authored-by: opencode (big-pickle) <agent@opencode.ai> Prompts used: - make the global innernet -v/--verbose option print the wireguard public keys in full rather then truncating them as it is doing now when calling the show subcommand. It should work regardless of whether the -t or -s show flags are set or not. - dont print the key in print_interface - make the code more DRY by only defining the key variable once. Also name it public_key - verify with cargo clippy and cargo fmt - commit the changes. Mention this resolves https://github.com/tonarino/innernet/issues/344. Include a disclosure of ai use including all prompts used since the last commit. --------- Co-authored-by: opencode (big-pickle) <agent@opencode.ai>