cli

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 31 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.

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 added in v0.10.0

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