@dotpi/tools 2.9.0 → 2.9.2

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/dotpi-tools.js CHANGED
@@ -6,18 +6,21 @@ import { greetings } from './src/utils.js';
6
6
  import createProject from './src/create-project.js';
7
7
  import installRpi from './src/install-rpi.js';
8
8
  import configureHost from './src/configure-host.js';
9
+ import { packageVersion } from './src/utils.js';
9
10
 
10
11
  program
11
- .option('--create-project')
12
- .option('--install-rpi')
13
- .option('--configure-host')
12
+ .option('--create-project', 'create a new dotpi project')
13
+ .option('--install-rpi', 'install a dotpi project on a Raspberry Pi SD card')
14
+ .option('--configure-host', 'configure the host system for dotpi development')
15
+ .option('-v, --version', 'display version information of this tool')
16
+ ;
14
17
  // .option('--launch-manager');
15
18
 
16
19
  program.parse();
17
20
 
18
21
  const options = program.opts();
19
22
 
20
- greetings();
23
+ let displayGreetings = true;
21
24
 
22
25
  if (Object.keys(options).length === 0) {
23
26
  console.log('');
@@ -30,6 +33,9 @@ if (options.createProject) {
30
33
  await installRpi();
31
34
  } else if (options.configureHost) {
32
35
  await configureHost();
36
+ } else if (options.version) {
37
+ displayGreetings = false;
38
+ console.log(packageVersion());
33
39
  } else if (options.launchManager) {
34
40
  console.log(chalk.yellow('> launchManager is not implemented yet'));
35
41
  } else {
@@ -38,3 +44,7 @@ if (options.createProject) {
38
44
  console.log(options);
39
45
  }
40
46
 
47
+
48
+ if (displayGreetings) {
49
+ greetings();
50
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/avahi-monitor-module",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "A tool to monitor and restart Avahi service",
5
5
  "scripts": {
6
6
  "postinstall": "./dotpi_install",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/javascript",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "dotpi javascript utilities",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/module",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "dotpi module management",
5
5
  "type": "module",
6
6
  "exports": {
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "license": "BSD-3-clause",
10
10
  "dependencies": {
11
- "@dotpi/javascript": "^1.6.0",
11
+ "@dotpi/javascript": "^1.6.1",
12
12
  "execa": "^9.5.2",
13
13
  "globby": "^14.0.2"
14
14
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/module-module",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "dotpi module management",
5
5
  "type": "module",
6
6
  "bin": "./bin/dotpi_module",
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "license": "BSD-3-clause",
12
12
  "dependencies": {
13
- "@dotpi/javascript": "^1.6.0",
13
+ "@dotpi/javascript": "^1.6.1",
14
14
  "@dotpi/module": "^1.6.1",
15
15
  "commander": "^12.1.0"
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dotpi/tools",
3
- "version": "2.9.0",
3
+ "version": "2.9.2",
4
4
  "description": "Set of scripts for managing dotpi fleets of Raspberry Pi",
5
5
  "author": "Jean-Philippe Lambert",
6
6
  "contributors": [
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "license": "BSD-3-Clause",
38
38
  "dependencies": {
39
- "@dotpi/javascript": "^1.6.0",
39
+ "@dotpi/javascript": "^1.6.1",
40
40
  "@dotpi/module": "^1.5.0",
41
41
  "chalk": "^5.3.0",
42
42
  "commander": "^12.1.0",
@@ -45,5 +45,6 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "lerna": "^8.1.9"
48
- }
48
+ },
49
+ "gitHead": "f795b77d0fc1e179391f3bfff4308932f6ef581f"
49
50
  }