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 ¶
NewRootCmd creates a fresh root command with its own flag state. Useful for testing to avoid shared global state between test runs.
Types ¶
Source Files
¶
- agc_cmd.go
- agc_download_cmd.go
- agc_download_helpers.go
- agc_index_cmd.go
- agc_locate_cmd.go
- amr_cmd.go
- columns_cmd.go
- config_cmd.go
- csv_reader.go
- dbcheck.go
- download_cmd.go
- download_helpers.go
- fetch_cmd.go
- index_cmd.go
- info_cmd.go
- mcp_cmd.go
- mlst_cmd.go
- osf_cmd.go
- query_cmd.go
- root.go
- run_filter.go
- sketch_cmd.go
- summarise_cmd.go
- update_cmd.go
- version_cmd.go
Click to show internal directories.
Click to hide internal directories.