Lists Gmail forwarding addresses via CLI, formatting them into a table for display.
// 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.
//! # Gmail forwarding address list
//!
//! The `gmail settings forwarding-addresses list` command,
//! `users.settings.forwardingAddresses.list`.
use std::fmt;
use anyhow::Result;
use clap::Parser;
use io_gmail::v1::rest::settings::forwarding_addresses::list::{
GmailForwardingAddressesList, GmailForwardingAddressesListResponse,
};
use pimalaya_cli::printer::Printer;
use pimalaya_cli::table::{Cell, Color, ContentArrangement, Row, Table};
use schemars::JsonSchema;
use serde::Serialize;
use crate::{
account::context::Account,
gmail::{client::GmailClient, settings::convert::verification_stat
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key