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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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