flag/cli.rs

himalaya · src/pimdir/flag/cli.rs · rust · Apache-2.0
email

Rust CLI command for managing pimdir flags, dispatching subcommands with clap.

// Source: https://github.com/pimalaya/himalaya | License: Apache-2.0 | Copyright 2022-2026 soywod <pimalaya.org@posteo.net>
// Provided via justclaw.it.com; keep this notice with the code.
//! # pimdir flag command
//!
//! The `pimdir flag` command, dispatching onto its subcommands.

use anyhow::Result;
use clap::Subcommand;
use pimalaya_cli::printer::Printer;

use crate::{
    account::context::Account,
    pimdir::{
        client::PimdirClient,
        flag::{
            add::PimdirFlagAddCommand, list::PimdirFlagListCommand,
            remove::PimdirFlagRemoveCommand, set::PimdirFlagSetCommand,
        },
    },
};

/// Read and stage any flag on a message, keywords included.
///
/// The shared `flag` commands take the four flags every backend carries.
/// A pimdir store carries wha

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key