Skip to content

Commit

Permalink
feat(options): add new options
Browse files Browse the repository at this point in the history
New options:
- add-host
- cap-add
- cap-drop
- device
- dns
- env
- env-file
- hostname
- label
- mac-address
- name
- restart
- security-opt
- tmpfs
- init
- privileged
  • Loading branch information
cgoIT committed Mar 31, 2023
1 parent 28024b7 commit 346b1c7
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import { notImplementedInCompose, notYetImplemented, processBoolean, processOpti

/* eslint-disable */
const OPTIONS: Array<Option> = [
{ name: 'add-host', path: 'extra_hosts', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'attach', short: 'a', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'blkio-weight', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'blkio-weight-device', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'cap-add', path: 'cap_add', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'cap-drop', path: 'cap_drop', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'cgroupns', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'cgroup-parent', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'cidfile', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
Expand All @@ -17,19 +20,19 @@ const OPTIONS: Array<Option> = [
{ name: 'cpus', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'cpuset-mems', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'cpu-shares', short: 'c', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'device', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'device', path: 'devices', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'device-cgroup-rule', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'device-read-bps', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'device-read-iops', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'device-write-bps', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'device-write-iops', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'dns', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'dns', path: 'dns', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'dns-option', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'dns-search', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'domainname', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'entrypoint', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'env', short: 'e', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'env-file', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'env', short: 'e', path: 'environment', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'env-file', path: 'env_file', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'expose', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'gpus', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'group-add', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
Expand All @@ -38,40 +41,40 @@ const OPTIONS: Array<Option> = [
{ name: 'health-retries', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'health-start-period', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'health-timeout', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'hostname', short: 'h', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'hostname', short: 'h', path: 'hostname', type: OptionType.withArgs, multiValue: false, action: processOptionWithArgs },
{ name: 'ip', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'ip6', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'ipc', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'kernel-memory', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'label-file', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'label', short: 'l', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'label', short: 'l', path: 'labels', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'link', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'link-local-ip', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'log-driver', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'log-opt', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'mac-address', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'mac-address', path: 'mac_address', type: OptionType.withArgs, multiValue: false, action: processOptionWithArgs },
{ name: 'memory', short: 'm', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'memory-swap', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'memory-swappiness', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'memory-reservation', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'mount', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'name', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'network', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'name', path: 'container_name', type: OptionType.withArgs, multiValue: false, action: processOptionWithArgs },
{ name: 'network', path: 'networks', type: OptionType.withArgs, multiValue: true, action: notYetImplemented },
{ name: 'network-alias', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'oom-score-adj', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'pid', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'pids-limit', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'platform', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'publish', short: 'p', path: 'ports', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'pull', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'restart', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'restart', path: 'restart', type: OptionType.withArgs, multiValue: false, action: processOptionWithArgs },
{ name: 'runtime', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'security-opt', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'security-opt', path: 'security_opt', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'shm-size', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'stop-signal', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'stop-timeout', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'storage-opt', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'tmpfs', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'tmpfs', path: 'tmpfs', type: OptionType.withArgs, multiValue: true, action: processOptionWithArgs },
{ name: 'sysctl', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'ulimit', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
{ name: 'user', short: 'u', path: '', type: OptionType.withArgs, multiValue: false, action: notYetImplemented },
Expand All @@ -90,11 +93,11 @@ const OPTIONS: Array<Option> = [
{ name: 'daemon', short: 'd', path: '', type: OptionType.flag, multiValue: false, action: notImplementedInCompose },
{ name: 'disable-content-trust', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'help', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'init', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'init', path: 'init', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'interactive', short: 'i', path: 'stdin_open', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'no-healthcheck', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'oom-kill-disable', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'privileged', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'oom-kill-disable', path: '', type: OptionType.flag, multiValue: false, action: notImplementedInCompose },
{ name: 'privileged', path: 'privileged', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'publish-all', short: 'P', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'quiet', short: 'q', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
{ name: 'read-only', path: '', type: OptionType.flag, multiValue: false, action: processBoolean },
Expand Down

0 comments on commit 346b1c7

Please sign in to comment.