From 5e27b76bb86e9d76523cf2800cd7ec9e549f9f18 Mon Sep 17 00:00:00 2001 From: Hyojin Kim Date: Thu, 10 Sep 2020 18:01:10 +0900 Subject: [PATCH] Converted into certificate --- README.md | 7 +++---- command/{generate.js => certificate.js} | 0 lib/cli.js | 10 +++++----- 3 files changed, 8 insertions(+), 9 deletions(-) rename command/{generate.js => certificate.js} (100%) diff --git a/README.md b/README.md index 0fd9f89..d205186 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,7 @@ Please note that, It should be run when you use first time on your tizen applica .witsconfig.json and .witsignore files are generated on your tizen app project. After then, you can modify your information to them. -#### 3. `wits -g` / `wits --generate` +#### 3. `wits -c` / `wits --certificate` For creating a certification(Supported Tizen certification only). As following steps, you can create a certification on `~/{path-to}/wits/resource/profiles.xml`. @@ -124,7 +124,6 @@ on `Windows` and `MacOS` both, **WITs** recognises path segment only one separat - **connectionInfo** (mandatory) - deviceIp [string] : Device(TV) Ip address (In case of Emulator, Please input 0.0.0.0) - hostIp [string] : Host(PC) Ip address - - socketPort [integer] : TV port. It is generated randomly in WITs. - width [string] : Resolution - isDebugMode [boolean] : Setting true, chrome inspector is launched automatically. / Setting false, nothing happened. - **profileInfo** (mandatory) @@ -152,9 +151,9 @@ stglib ![witsi](https://user-images.githubusercontent.com/1733182/77503919-3ddef280-6ea2-11ea-9bb4-06f3cb9ebbc6.gif) -### wits -g +### wits -c -![witsg](https://user-images.githubusercontent.com/1733182/92564253-d4b63480-f2b3-11ea-8ba0-933b9fbdd2ad.gif) +![witsc](https://user-images.githubusercontent.com/1733182/92706471-7fe7ec00-f38f-11ea-8d47-47b13f956906.gif) ### wits -s diff --git a/command/generate.js b/command/certificate.js similarity index 100% rename from command/generate.js rename to command/certificate.js diff --git a/lib/cli.js b/lib/cli.js index e5f1246..edd36a7 100644 --- a/lib/cli.js +++ b/lib/cli.js @@ -18,8 +18,8 @@ util.displayBanner(); program.version(`wits v${package.version}`); program.option('-i, --init', 'Create a config file for running WITs'); program.option( - '-g, --generate', - 'Generate a certification for packaging Tizen web app' + '-c, --certificate', + 'Generate a certification for signing Tizen web app' ); program.option('-s, --start', 'Start and Use WITs service'); program.option('-w, --watch', 'Watch project for live reloading'); @@ -29,9 +29,9 @@ program.parse(process.argv); if (program.init) { const initCommand = require('../command/init.js'); initCommand.run(program.init); -} else if (program.generate) { - const generateCommand = require('../command/generate.js'); - generateCommand.run(); +} else if (program.certificate) { + const certificateCommand = require('../command/certificate.js'); + certificateCommand.run(); } else if (program.start) { const startCommand = require('../command/start.js'); startCommand.run();