Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmanchhabra committed Oct 16, 2024
1 parent 6c99f97 commit c0de611
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,28 @@ import nwbuild from './index.js';

program
.argument('<string>', 'File path(s) to project')
.option('--mode <string>', 'get, run or build mode')
.option('--version <string>', 'NW.js version')
.option('--flavor <string>', 'NW.js build flavor')
.option('--mode <string>', 'get, run or build mode', 'build')
.option('--version <string>', 'NW.js version', 'latest')
.option('--flavor <string>', 'NW.js build flavor', 'normal')
.option('--platform <string>', 'NW.js supported platform')
.option('--arch <string>', 'NW.js supported architecture')
.option('--downloadUrl <string>', 'NW.js download server')
.option('--manifestUrl <string>', 'NW.js version info')
.option('--cacheDir <string>', 'Cache NW.js binaries')
.option('--outDir <string>', 'NW.js build artifacts')
.option('--app <string>', 'Platform specific app metadata. Refer to docs for more info')
.option('--cache <boolean>', 'Flag to enable/disable caching')
.option('--ffmpeg <boolean>', 'Flag to enable/disable downloading community ffmpeg')
.option('--glob <boolean>', 'Flag to enable/disable globbing')
.option('--app <object>', 'Platform specific app metadata. Refer to docs for more info')
.option('--cache <boolean>', 'Flag to enable/disable caching', true)
.option('--ffmpeg <boolean>', 'Flag to enable/disable downloading community ffmpeg', false)
.option('--glob <boolean>', 'Flag to enable/disable globbing', true)
.option('--logLevel <string>', 'Specify log level')
.option('--zip <string>', 'Flag to enable/disable compression')
.option('--managedManifest <string>', 'Managed manifest mode')
.option('--nodeAddon <boolean>', 'Download NW.js Node headers');
.option('--zip <string>', 'Flag to enable/disable compression', false)
.option('--managedManifest <string>', 'Managed manifest mode', false)
.option('--nodeAddon <boolean>', 'Download NW.js Node headers', false);

program.parse();

console.log(program.args.join(' '))

Check failure on line 29 in src/cli.js

View workflow job for this annotation

GitHub Actions / tests (macos-14)

Missing semicolon

Check failure on line 29 in src/cli.js

View workflow job for this annotation

GitHub Actions / tests (ubuntu-22.04)

Missing semicolon

Check failure on line 29 in src/cli.js

View workflow job for this annotation

GitHub Actions / tests (windows-2022)

Missing semicolon
console.log(program.opts())

Check failure on line 30 in src/cli.js

View workflow job for this annotation

GitHub Actions / tests (macos-14)

Missing semicolon

Check failure on line 30 in src/cli.js

View workflow job for this annotation

GitHub Actions / tests (ubuntu-22.04)

Missing semicolon

Check failure on line 30 in src/cli.js

View workflow job for this annotation

GitHub Actions / tests (windows-2022)

Missing semicolon
nwbuild({
...program.opts(),
srcDir: program.args.join(' '),
Expand Down

0 comments on commit c0de611

Please sign in to comment.