cob-cli 2.43.12 → 2.44.0

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/bin/cob-cli.js CHANGED
@@ -46,6 +46,7 @@ program
46
46
  program
47
47
  .command('customize')
48
48
  .arguments('[name]', "Name to filter the list of customizations", "interactive menu")
49
+ .option('-s --space <space>', 'specifies search space, default is org:cob')
49
50
  .option('-f --force', 'skips comparisons')
50
51
  .option('-c --cache', 'cache all customizations')
51
52
  .option('-l --local', 'use local files')
@@ -56,7 +56,8 @@ async function getCustomizationsList(filter, args) {
56
56
  }
57
57
  } else {
58
58
  // Get list of relevant customizations from github
59
- const response = await axios.get( "https://api.github.com/search/repositories?q=" + customizationNameQuery + "+in:name+org:cob", { headers: { Accept: "application/json", "Accept-Encoding": "identity" } } )
59
+ const space = args.space ? args.space : "org:cob"
60
+ const response = await axios.get( "https://api.github.com/search/repositories?q=" + customizationNameQuery + "+in:name+" + space, { headers: { Accept: "application/json", "Accept-Encoding": "identity" } } )
60
61
  customizationRepos = response.data.items
61
62
  }
62
63
 
@@ -68,7 +68,6 @@ async function getLastDeployedSha(server) {
68
68
  result = await execa('ssh', [server, "cat " + SERVER_LAST_SHA_FILE ]);
69
69
  } catch (error) {
70
70
  await execa('ssh', [server, "mkdir -p " + SERVER_COB_CLI_DIRECTORY ]);
71
- // await execa('ssh', [server, "setfacl -d -m group:users:rw " + SERVER_COB_CLI_DIRECTORY ]);
72
71
  return null
73
72
  }
74
73
  return result.stdout;
@@ -84,4 +83,4 @@ function _setLastDeployedSha(server, lastSha) {
84
83
  function getCurrentBranch() {
85
84
  return git().revparse(["--abbrev-ref", "HEAD"]);
86
85
  }
87
- exports.getCurrentBranch = getCurrentBranch;
86
+ exports.getCurrentBranch = getCurrentBranch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cob-cli",
3
- "version": "2.43.12",
3
+ "version": "2.44.0",
4
4
  "description": "A command line utility to help Cult of Bits partners develop with higher speed and reusing common code and best practices.",
5
5
  "preferGlobal": true,
6
6
  "repository": {