cob-cli 2.43.12 → 2.45.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
@@ -40,12 +40,13 @@ program
40
40
  .option('-l --legacy <folder>','import git history from legacy ClientConfs. <folder> should be path to server files inside ClienConfs.')
41
41
  .option('-a --repoaccount <account url>', 'Specify git account to use', "git@gitlab.com:cob/")
42
42
  .option('-V --verbose', 'verbose execution of tasks', increaseVerbosity, 0)
43
- .description('Initializes a server customization repository. Use <servername>.cultofbits.com (i.e. name without the FQDN)')
43
+ .description('Initializes a server customization repository. Use <servername>.cultofbits.pt (i.e. name without the FQDN)')
44
44
  .action( init );
45
45
 
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')
@@ -59,7 +60,7 @@ program
59
60
  .option('-e --environment <name>', 'environment to use')
60
61
  .option('-d --dashboard <name>', 'Aditionally specify a VUE dashboard to test')
61
62
  .option('-l --localOnly', 'test only localFiles (customUI)')
62
- .option('-s --servername <servername>', 'use <servername>.cultofbits.com (i.e. name without the FQDN)')
63
+ .option('-s --servername <servername>', 'use <servername>.cultofbits.pt (i.e. name without the FQDN)')
63
64
  .description('Test the customization')
64
65
  .action( test );
65
66
 
@@ -68,7 +69,7 @@ program
68
69
  .option('-f --force', 'skips comparisons')
69
70
  .option('-e --environment <name>', 'environment to use')
70
71
  .option('-V --verbose', 'verbose execution of tasks', increaseVerbosity, 0)
71
- .option('-s --servername <servername>', 'use <servername>.cultofbits.com (i.e. name without the FQDN)')
72
+ .option('-s --servername <servername>', 'use <servername>.cultofbits.pt (i.e. name without the FQDN)')
72
73
  .description('Deploy customization to the server')
73
74
  .action( deploy );
74
75
 
@@ -76,7 +77,7 @@ program
76
77
  .command('updateFromServer')
77
78
  .description('Updates local copy with current files on server, in case of changes made out of standard process.')
78
79
  .option('-e --environment <name>', 'environment to use')
79
- .option('-s --servername <servername>', 'use <servername>.cultofbits.com (i.e. name without the FQDN)')
80
+ .option('-s --servername <servername>', 'use <servername>.cultofbits.pt (i.e. name without the FQDN)')
80
81
  .option('-V --verbose', 'verbose execution of tasks', increaseVerbosity, 0)
81
82
  .action( updateFromServer );
82
83
 
@@ -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
 
@@ -118,7 +118,7 @@ function _getDefaultServerForEnvironment(environmentName) {
118
118
 
119
119
  /* ************************************ */
120
120
  function _getServerFQDN(servername) {
121
- return servername + ".cultofbits.com";
121
+ return servername + ".cultofbits.pt";
122
122
  }
123
123
 
124
124
  /* ************************************ */
@@ -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.45.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": {