Comparing version 0.4.12 to 0.4.13
{ | ||
"name": "rap-esp32", | ||
"version": "0.4.12", | ||
"version": "0.4.13", | ||
"description": "Rap extension for esp32", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -9,2 +9,4 @@ 'use strict'; | ||
const parametersJS = require('./parameters.js'); | ||
const { spawn, spawnSync } = require('child_process'); | ||
@@ -22,3 +24,4 @@ const { Promise } = require('thenfail'); | ||
.option('--package [path]', 'create the deployment package') | ||
.option('--port [port]', 'designate port'); | ||
.option('--parameters [port=<port>]', 'designate port') | ||
.option('--session-parameters []', 'use rap session mechanism'); | ||
@@ -31,2 +34,5 @@ trace.push(action); | ||
var parameters = parametersJS.getParameters(rap, program); | ||
program.port = parameters.port; | ||
// TODO(Young): copied from rap-tm4c1294, shoule have no side effect on rap-esp32 | ||
@@ -33,0 +39,0 @@ let alignment = Number.parseInt(program.align) || 4 * 1024; |
'use strict'; | ||
const chalk = require('chalk'); | ||
const parametersJS = require('./parameters.js'); | ||
@@ -8,3 +9,4 @@ exports.log = function (rap, program, trace) { | ||
.description('stream system and application logs to output') | ||
.option('--port [port]', 'designate port'); | ||
.option('--parameters [port=<port>]', 'designate port') | ||
.option('--session-parameters []', 'use rap session mechanism'); | ||
@@ -17,2 +19,5 @@ trace.push(action); | ||
var parameters = parametersJS.getParameters(rap, program); | ||
program.port = parameters.port; | ||
var path; | ||
@@ -19,0 +24,0 @@ switch (process.platform) { |
'use strict'; | ||
const parametersJS = require('./parameters.js'); | ||
const { Promise } = require('thenfail'); | ||
@@ -10,6 +11,10 @@ const { flash } = require('../lib/flash'); | ||
.description('upgrade ruff firmware') | ||
.option('--port [port]', 'designate port') | ||
.option('--parameters [port=<port>]', 'designate port') | ||
.option('--session-parameters []', 'use rap session mechanism') | ||
.action((binPath, program) => { | ||
trace.push('upgrade'); | ||
var parameters = parametersJS.getParameters(rap, program); | ||
program.port = parameters.port; | ||
const fs = require('fs'); | ||
@@ -72,2 +77,4 @@ const os = require('os'); | ||
.option('-P, --application', 'erase only the application flash region') | ||
.option('--parameters [port=<port>]', 'designate port') | ||
.option('--session-parameters []', 'use rap session mechanism') | ||
.description('erase flash') | ||
@@ -77,2 +84,5 @@ .action((program) => { | ||
var parameters = parametersJS.getParameters(program); | ||
program.port = parameters.port; | ||
var cp; | ||
@@ -79,0 +89,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30035
9
810