123456789101112131415161718192021222324252627282930313233343536 |
- use a::logger;
- export type Config = struct {
- verbose: bool,
- dry_run: bool,
- out_dir: str,
- ext_override: (void | str),
- threads: (void | size),
- memory: (void | str),
- logger: (void | logger::Logger),
- };
- export fn default_config() Config =
- Config {
- out_dir = ".",
- ext_override = void,
- threads = void,
- memory = void,
- logger = void,
- ...
- };
- export type ActionList = struct {
- archive: str,
- };
- export type ActionExtract = struct {
- archive: str,
- };
- export type ActionCreate = struct {
- archive: str,
- files: []str,
- };
- export type ActionListArchives = void;
- export type Action = (ActionList | ActionExtract | ActionCreate | ActionListArchives);
|