Documentation
¶
Index ¶
- func DSNFlag() *cli.StringFlag
- func JobDirFlag() *cli.StringFlag
- func ProgressBucketFlag() *cli.StringFlag
- func ProgressDirFlag() *cli.StringFlag
- func ProgressDriverFlag() *cli.StringFlag
- func ProgressEndpointFlag() *cli.StringFlag
- func ProgressPrefixFlag() *cli.StringFlag
- func ProgressRegionFlag() *cli.StringFlag
- func ProgressSchemaFlag() *cli.StringFlag
- func ResolveDSN(cmd *cli.Command) (string, error)
- func ResolveJobFile(cmd *cli.Command) (string, error)
- func ResolveProgressFile(cmd *cli.Command, version string) (string, error)
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 ¶
ResolveDSN returns the database connection string from the --dsn flag (which also reads from the DATABASE_URL env var).
func ResolveJobFile ¶
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.
Types ¶
This section is empty.