Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  args.rs

  Sprache: Rust
 

use clap::{Parser, Subcommand, ValueEnum};

/// A command-line tool for creating large scale changes in the Android tree.
#[derive(Parser, Debug)]
#[clap()]
pub struct Cli {
    #[clap(subcommand)]
    pub command: Commands,

    /// Enable interactive mode, requiring user confirmation for each major step.
    #[clap(short, long, global = true)]
    pub interactive: bool,

    /// Enable verbose output for debugging.
    #[clap(short, long, global = true)]
    pub verbose: bool,
}

#[derive(Subcommand, Debug)]
pub enum Commands {
    /// Create new commits in dirty repositories and upload them.
    Commit(CommitArgs),
    /// Upload previously created branches.
    Upload(UploadArgs),
}

#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Debug)]
pub enum Granularity {
    Repo,
    Package,
    Dir,
    File,
}

#[derive(Parser, Debug)]
pub struct CommitArgs {
    /// The branch name to use for the new commits.
    #[clap(short = 'b', long)]
    pub branch: String,

    /// The commit message for the new commits.
    #[clap(short = 'm', long)]
    pub message: Option<String>,

    /// The level of commit separation.
    #[clap(short, long, value_enum, default_value_t = Granularity::Repo)]
    pub granularity: Granularity,

    /// Stack commits within a single repository instead of creating separate branches.
    #[clap(long)]
    pub stack: bool,

    /// The topic to upload the changes with.
    #[clap(short = 't', long)]
    pub topic: Option<String>,

    /// The hashtag to upload the changes with.
    #[clap(short = 'H', long)]
    pub hashtag: Option<String>,

    /// Do not upload the commits after creating them.
    #[clap(long)]
    pub no_upload: bool,

    /// Automatically answer "yes" to all repo upload prompts.
    #[clap(long)]
    pub yes: bool,

    /// Summarize which files are going to get committed into which groups without actually doing anything.
    #[clap(long)]
    pub dry_run: bool,
}

#[derive(Parser, Debug)]
pub struct UploadArgs {
    /// The name of the branch to upload.
    pub branch: String,

    /// The topic to upload the changes with.
    #[clap(short = 't', long)]
    pub topic: Option<String>,

    /// The hashtag to upload the changes with.
    #[clap(short = 'H', long)]
    pub hashtag: Option<String>,

    /// Automatically answer "yes" to all repo upload prompts.
    #[clap(long)]
    pub yes: bool,
}

Messung V0.5 in Prozent
C=92 H=100 G=95

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-27) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik