summaryrefslogtreecommitdiff
path: root/crates/arti/src/subcommands/hss.rs
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate --onion-name; introduce --onion-addressdisha2025-03-121-20/+32
|
* arti: Remove get-key subcommand in favor of onion-name.Gabriela Moldovan2024-09-171-28/+7
| | | | | | | | The `hss get-key` subcommand is now folded into `onion-name`, which takes a `--generate` argument which specifies whether to generate the key if missing. Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2419#note_3078068
* arti: Add CLI for generating an onion service hsid.Gabriela Moldovan2024-09-171-2/+83
| | | | | | | | | | | This adds a new `hss get-key` subcommand for retrieving and generating service identity keys. The existing `hss onion-name` is now a convenience alias for `hss get-key --generate=no --key-type=onion-name`. Note: I am calling this new subcommand `get-key` for consistency with its client counterpart (`hsc get-key`). Closes #1621
* arti: Add an enum for the hss subcommand.Gabriela Moldovan2024-09-171-12/+39
| | | | | | | This is needed because we'll soon add an `hss get-key` subcommand for getting and/or generating a service identity key alongside `hss onion-name` (`hss onion-name` will become a convenience around `hss get-key --key-type=onion-name`).
* arti: Refactor hss::onion_name() implementation.Gabriela Moldovan2024-09-171-11/+29
| | | | | This splits `onion_name` into multiple functions (which will be repurposed for the future `hss get-key` implementation).
* arti: Move hss onion-name implementation to a separate function.Gabriela Moldovan2024-09-171-29/+41
| | | | | `hss` will soon sprout another subcommand, so I am preemptively refactoring the `hss onion-name` implementation out of `hss::run()`.
* Have `arti hss onion-name` error if it doesn't print the onion nameKunal Mehta2024-08-011-3/+5
| | | | | | | There are two error cases where the onion name isn't printed, but previously returned `Ok(())`. It now returns an error to exit with a non-zero status code.
* arti: Move arti hss subcommand implementation to separate module.Gabriela Moldovan2024-06-171-0/+51
This addresses a TODO.