aaden-cli 1.3.21 → 1.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -31,7 +31,7 @@ function showCommand (arr) {
31
31
  console.log('')
32
32
  }
33
33
 
34
- function executeInShell (cmd, debug = false) {
34
+ function executeInShell (cmd, debug = false,needResult=false) {
35
35
  let _cmd = commandBuilder(cmd)
36
36
  try {
37
37
  showCommand(cmd)
@@ -44,7 +44,7 @@ function executeInShell (cmd, debug = false) {
44
44
  result: true,
45
45
  ...spawnSync(_cmd, [], {
46
46
  shell: true,
47
- stdio: 'inherit'
47
+ stdio: needResult?'pipe':'inherit'
48
48
  })}
49
49
  } catch (e) {
50
50
  console.log(getLine('*'))
@@ -89227,7 +89227,7 @@ module.exports = JSON.parse('{"nested":{"google":{"nested":{"protobuf":{"nested"
89227
89227
  /***/ ((module) => {
89228
89228
 
89229
89229
  "use strict";
89230
- module.exports = {"i8":"1.3.20"};
89230
+ module.exports = {"i8":"1.3.21"};
89231
89231
 
89232
89232
  /***/ }),
89233
89233
 
@@ -90092,7 +90092,7 @@ async function removeAllData() {
90092
90092
 
90093
90093
 
90094
90094
  async function doLog() {
90095
- const res = cli.executeInShell(['snap info aaden-vue-app'])
90095
+ const res = cli.executeInShell(['snap info aaden-vue-app'], program.debug, true)
90096
90096
  const log = res.stdout
90097
90097
  console.log(JSON.stringify(res))
90098
90098
  await deviceEcho(log, version)
package/index.js CHANGED
@@ -625,7 +625,7 @@ async function removeAllData() {
625
625
 
626
626
 
627
627
  async function doLog() {
628
- const res = cli.executeInShell(['snap info aaden-vue-app'])
628
+ const res = cli.executeInShell(['snap info aaden-vue-app'], program.debug, true)
629
629
  const log = res.stdout
630
630
  console.log(JSON.stringify(res))
631
631
  await deviceEcho(log, version)
@@ -16,7 +16,7 @@ function showCommand (arr) {
16
16
  console.log('')
17
17
  }
18
18
 
19
- function executeInShell (cmd, debug = false) {
19
+ function executeInShell (cmd, debug = false,needResult=false) {
20
20
  let _cmd = commandBuilder(cmd)
21
21
  try {
22
22
  showCommand(cmd)
@@ -29,7 +29,7 @@ function executeInShell (cmd, debug = false) {
29
29
  result: true,
30
30
  ...spawnSync(_cmd, [], {
31
31
  shell: true,
32
- stdio: 'inherit'
32
+ stdio: needResult?'pipe':'inherit'
33
33
  })}
34
34
  } catch (e) {
35
35
  console.log(getLine('*'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aaden-cli",
3
- "version": "1.3.21",
3
+ "version": "1.3.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {