@intecoag/inteco-cli 1.5.2 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intecoag/inteco-cli",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "description": "CLI-Tools for Inteco",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -40,6 +40,16 @@ async function configRewrite(cli) {
40
40
  name: 'mnr',
41
41
  message: 'Mandant?',
42
42
  initial: '1'
43
+ }, {
44
+ type: 'autocomplete',
45
+ name: 'language',
46
+ message: 'Sprache?',
47
+ choices: [
48
+ { title: '<Nicht Verändern>', value: '?' },
49
+ { title: 'Deutsch', value: 'd' },
50
+ { title: 'Französisch', value: 'f' },
51
+ { title: 'Italienisch', value: 'i' }
52
+ ]
43
53
  }], {
44
54
  onCancel: () => {
45
55
  console.log()
@@ -58,6 +68,10 @@ async function configRewrite(cli) {
58
68
  // Rewrite wegas.properties
59
69
  const editorWegasProperties = createEditor(config.configIndividualPath + path.sep+"wegas.properties")
60
70
  editorWegasProperties.set("db.database", responses.dbName);
71
+
72
+ if(responses.language != '?') {
73
+ editorWegasProperties.set("language", responses.language)
74
+ }
61
75
  editorWegasProperties.save();
62
76
 
63
77
  // Rewrite path.yaml