-
Notifications
You must be signed in to change notification settings - Fork 9
/
flags.go
31 lines (21 loc) · 1.07 KB
/
flags.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package tools
import (
"context"
"flag"
)
func AppendCommonConfigFlags(ctx context.Context, fs *flag.FlagSet) error {
fs.String("config", "", "Path to a valid go-iiif config file. DEPRECATED - please use -config_source and -config name.")
fs.String("config-source", "", "A valid Go Cloud bucket URI where your go-iiif config file is located.")
fs.String("config-name", "config.json", "The name of your go-iiif config file.")
return nil
}
func AppendCommonInstructionsFlags(ctx context.Context, fs *flag.FlagSet) error {
fs.String("instructions", "", "Path to a valid go-iiif processing instructions file. DEPRECATED - please use -instructions-source and -instructions-name.")
fs.String("instructions-source", "", "A valid Go Cloud bucket URI where your go-iiif instructions file is located.")
fs.String("instructions-name", "instructions.json", "The name of your go-iiif instructions file.")
return nil
}
func AppendCommonToolModeFlags(ctx context.Context, fs *flag.FlagSet) error {
fs.String("mode", "cli", "Valid modes are: cli, csv, fsnotify, lambda.")
return nil
}