From 7510a59b879856098d7165b221c4076c6f885ea9 Mon Sep 17 00:00:00 2001 From: Pablo Date: Fri, 6 Sep 2024 13:51:01 +0200 Subject: [PATCH] docs(iroh-cli): update `tags` command documentation (#2709) ## Description Update documentation to `tags` command. This partially addresses #2660, and belongs to a series of PRs to complete it ## Breaking Changes ## Notes & open questions Imports have been formated to be grouped. ## Change checklist - [ ] Self-review. - [X] Documentation updates following the [style guide](https://rust-lang.github.io/rfcs/1574-more-api-documentation-conventions.html#appendix-a-full-conventions-text), if relevant. - [ ] Tests if relevant. - [ ] All breaking changes documented. --- iroh-cli/src/commands/tags.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iroh-cli/src/commands/tags.rs b/iroh-cli/src/commands/tags.rs index fa4a298429..4789a26395 100644 --- a/iroh-cli/src/commands/tags.rs +++ b/iroh-cli/src/commands/tags.rs @@ -1,10 +1,12 @@ +//! Define the tags subcommand. + use anyhow::Result; use bytes::Bytes; use clap::Subcommand; use futures_lite::StreamExt; -use iroh::blobs::Tag; -use iroh::client::Iroh; +use iroh::{blobs::Tag, client::Iroh}; +/// Commands to manage tags. #[derive(Subcommand, Debug, Clone)] #[allow(clippy::large_enum_variant)] pub enum TagCommands { @@ -19,6 +21,7 @@ pub enum TagCommands { } impl TagCommands { + /// Runs the tag command given the iroh client. pub async fn run(self, iroh: &Iroh) -> Result<()> { match self { Self::List => {