1.1.1Updated a month ago
export const GetOption = (code: string) => Object.entries(Option).find(([_, v]) => v == code)![0];
export enum Option {
  force = 'f',
  version = 'v',
  reason = 'reason',
  full = 'full',
  viapak_has_been_updated = 'viapak_has_been_updated',
}
export interface I_OptionCode {
  option: Option
  description: string
  help?: string
  secret?: boolean
}
export const OptionCodes: I_OptionCode[] = [
  {
    option: Option.force,
    description: 'Force the current action (Dangerous!)'
  },
  {
    option: Option.version,
    description: 'The target version of this package'
  },
  {
    option: Option.reason,
    description: 'Provide a reason for status changes'
  },
  {
    option: Option.full,
    description: 'Make certain commands output more information'
  },
  {
    option: Option.viapak_has_been_updated,
    description: '',
    secret: true
  }
];