Skip to content

Structural Project Overview

Thorsten de Buhr edited this page Jul 4, 2023 · 8 revisions

Init Project, Command Line

flowchart LR
    A[main] --> I[Go Init functions]
    I --> I1[Initialisation of sub command options<br>into corresponding structures]
    I --> I2[<br>Initialisation of modules]
    A --> B[Cobra<br>commands.NewCli]
    A --> C[Cobra<br>cmd.Execute]

    B --> D[Set up<br>general commands/options]
    B --> E[Set up<br>sub commands]

    E --> F[Commands with own options:<br>PackCmd<br>PdscCmd<br>IndexCmd<br>InitCmd<br>AddCmd<br>RmCmd<br>ListCmd<br>UpdateIndexCmd<br>ChecksumCreateCmd<br>ChecksumVerifyCmd<br>	SignatureCreateCmd<br>SignatureVerifyCmd]

    D --> G[General commands/options:<br>version<br>quiet<br>verbose<br>pack-root<br>concurrent-downloads<br>timeout<br>]

Loading

Execute Command Line

flowchart LR
    A[main] --> B[Cobra<br>commands.NewCli]
    A[main] --> C[Cobra<br>cmd.Execute]


Loading

Clone this wiki locally