(yargs: Argv)
| 44 | const describe = 'build and upload an edge package' |
| 45 | |
| 46 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 47 | outputItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 48 | .positional( |
| 49 | 'project-directory', |
| 50 | { describe: 'directory containing project to upload', type: 'string', default: '.' }, |
| 51 | ) |
| 52 | .option( |
| 53 | 'build-only', |
| 54 | { |
| 55 | alias: 'b', |
| 56 | describe: 'save package to specified zip file but skip upload', |
| 57 | type: 'string', |
| 58 | conflicts: ['upload'], |
| 59 | }, |
| 60 | ) |
| 61 | .option( |
| 62 | 'upload', |
| 63 | { |
| 64 | alias: 'u', |
| 65 | describe: 'upload zip file previously built with --build flag', |
| 66 | type: 'string', |
| 67 | conflicts: ['build-only'], |
| 68 | }, |
| 69 | ) |
| 70 | .option( |
| 71 | 'assign', |
| 72 | { |
| 73 | alias: 'a', |
| 74 | describe: 'prompt for a channel (or use default if one is set) to assign the driver to after upload', |
| 75 | type: 'boolean', |
| 76 | conflicts: ['channel', 'build-only'], |
| 77 | }, |
| 78 | ) |
| 79 | .option( |
| 80 | 'channel', |
| 81 | { |
| 82 | alias: 'C', |
| 83 | describe: 'automatically assign driver to specified channel after upload', |
| 84 | type: 'string', |
| 85 | conflicts: ['assign', 'build-only'], |
| 86 | }) |
| 87 | .option( |
| 88 | 'install', |
| 89 | { |
| 90 | alias: 'I', |
| 91 | describe: 'prompt for hub (or use default if one is set) to install to after assigning it' + |
| 92 | ' to the channel, implies --assign if --assign or --channel not included', |
| 93 | type: 'boolean', |
| 94 | conflicts: ['hub', 'build-only'], |
| 95 | }, |
| 96 | ) |
| 97 | .option( |
| 98 | 'hub', |
| 99 | { |
| 100 | describe: 'automatically install driver to specified hub, implies --assign if --assign or --channel' + |
| 101 | ' not included', |
| 102 | type: 'string', |
| 103 | conflicts: ['install', 'build-only'], |
nothing calls this directly
no test coverage detected