flags

package
v0.0.0-...-17df368 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DSNFlag

func DSNFlag() *cli.StringFlag

DSNFlag returns the shared --dsn flag for commands that connect to a database.

func JobDirFlag

func JobDirFlag() *cli.StringFlag

JobDirFlag returns the shared --dir flag for job commands.

func ProgressBucketFlag

func ProgressBucketFlag() *cli.StringFlag

ProgressBucketFlag returns the --progress-bucket flag for the S3 progress store.

func ProgressDirFlag

func ProgressDirFlag() *cli.StringFlag

ProgressDirFlag returns the shared --progress-dir flag for commands that track progress.

func ProgressDriverFlag

func ProgressDriverFlag() *cli.StringFlag

ProgressDriverFlag returns the --progress-driver flag for selecting the progress store backend.

func ProgressEndpointFlag

func ProgressEndpointFlag() *cli.StringFlag

ProgressEndpointFlag returns the --progress-endpoint flag for the S3 progress store.

func ProgressPrefixFlag

func ProgressPrefixFlag() *cli.StringFlag

ProgressPrefixFlag returns the --progress-prefix flag for the S3 progress store.

func ProgressRegionFlag

func ProgressRegionFlag() *cli.StringFlag

ProgressRegionFlag returns the --progress-region flag for the S3 progress store.

func ProgressSchemaFlag

func ProgressSchemaFlag() *cli.StringFlag

ProgressSchemaFlag returns the --progress-schema flag for the Postgres progress store.

func ResolveDSN

func ResolveDSN(cmd *cli.Command) (string, error)

ResolveDSN returns the database connection string from the --dsn flag (which also reads from the DATABASE_URL env var).

func ResolveJobFile

func ResolveJobFile(cmd *cli.Command) (string, error)

ResolveJobFile resolves a job name or file path into the full path to the job YAML file. If the argument contains a path separator or YAML extension it is treated as a direct path; otherwise it is resolved relative to --dir.

func ResolveProgressFile

func ResolveProgressFile(cmd *cli.Command, version string) (string, error)

ResolveProgressFile resolves the progress file path for a job. If the positional argument is a file path the job name is extracted from it; otherwise the argument is used as the job name directly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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