cli

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:          "atb",
	Short:        "Query and download AllTheBacteria genomes",
	SilenceUsage: true,
}

RootCmd is the base command for atb.

SilenceUsage keeps the usage block out of error output. Cobra reports the error itself, including the --help hint it adds for an unknown command, so main only turns a failure into an exit code.

View Source
var (

	// WaitForUpdateCheck is set by PersistentPreRun. Call it before exiting
	// main() to give the background update check time to save state.
	WaitForUpdateCheck func()
)

Functions

func NewRootCmd

func NewRootCmd(version string) *cobra.Command

NewRootCmd creates a fresh root command with its own flag state. Useful for testing to avoid shared global state between test runs.

Types

type AssemblyDownloadConfig

type AssemblyDownloadConfig struct {
	SampleAccessions []string
	OutputDir        string
	Parallel         int
	DryRun           bool
	MaxSamples       int
	Force            bool
	MinFreeSpaceGB   int
	Stderr           io.Writer
}

AssemblyDownloadConfig holds options for downloading genome assemblies.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL