uu_base32/
base32.rs

1// This file is part of the uutils coreutils package.
2//
3// For the full copyright and license information, please view the LICENSE
4// file that was distributed with this source code.
5
6pub mod base_common;
7
8use clap::Command;
9use uucore::{encoding::Format, error::UResult, translate};
10
11#[uucore::main]
12pub fn uumain(args: impl uucore::Args) -> UResult<()> {
13    let config = base_common::parse_base_cmd_args(args, uu_app())?;
14    let mut input = base_common::get_input(&config)?;
15    base_common::handle_input(&mut input, Format::Base32, config)
16}
17
18pub fn uu_app() -> Command {
19    base_common::base_app(translate!("base32-about"), translate!("base32-usage"))
20}