@dotenvx/dotenvx-ops 0.38.3 → 0.39.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/CHANGELOG.md +7 -1
- package/package.json +1 -1
- package/src/cli/actions/armor/down.js +17 -0
- package/src/cli/actions/armor/up.js +17 -0
- package/src/cli/commands/armor.js +22 -0
- package/src/cli/dotenvx-ops.js +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
[Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx-ops/compare/v0.39.0...main)
|
|
6
|
+
|
|
7
|
+
## [0.39.0](https://github.com/dotenvx/dotenvx-ops/compare/v0.38.3...v0.39.0) (2026-04-23)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* Added `armor up` and `armor down` placeholders ([#53](https://github.com/dotenvx/dotenvx-ops/pull/53))
|
|
6
12
|
|
|
7
13
|
## [0.38.3](https://github.com/dotenvx/dotenvx-ops/compare/v0.38.2...v0.38.3) (2026-04-21)
|
|
8
14
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { logger } = require('@dotenvx/dotenvx')
|
|
2
|
+
|
|
3
|
+
const Session = require('./../../../db/session')
|
|
4
|
+
|
|
5
|
+
function down () {
|
|
6
|
+
try {
|
|
7
|
+
const sesh = new Session()
|
|
8
|
+
sesh.notifyUpdate()
|
|
9
|
+
|
|
10
|
+
logger.success('⛨ coming soon')
|
|
11
|
+
} catch (error) {
|
|
12
|
+
logger.error(error.message)
|
|
13
|
+
process.exit(1)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = down
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { logger } = require('@dotenvx/dotenvx')
|
|
2
|
+
|
|
3
|
+
const Session = require('./../../../db/session')
|
|
4
|
+
|
|
5
|
+
function up () {
|
|
6
|
+
try {
|
|
7
|
+
const sesh = new Session()
|
|
8
|
+
sesh.notifyUpdate()
|
|
9
|
+
|
|
10
|
+
logger.success('⛨ coming soon')
|
|
11
|
+
} catch (error) {
|
|
12
|
+
logger.error(error.message)
|
|
13
|
+
process.exit(1)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = up
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const { Command } = require('commander')
|
|
2
|
+
|
|
3
|
+
const armor = new Command('armor')
|
|
4
|
+
|
|
5
|
+
armor
|
|
6
|
+
.description('ARMORED KEYS ⛨')
|
|
7
|
+
.allowUnknownOption()
|
|
8
|
+
|
|
9
|
+
// dotenvx-ops armor up
|
|
10
|
+
const upAction = require('./../actions/armor/up')
|
|
11
|
+
armor
|
|
12
|
+
.command('up')
|
|
13
|
+
.description('harden private key')
|
|
14
|
+
.action(upAction)
|
|
15
|
+
|
|
16
|
+
const downAction = require('./../actions/armor/down')
|
|
17
|
+
armor
|
|
18
|
+
.command('down')
|
|
19
|
+
.description('soften private key')
|
|
20
|
+
.action(downAction)
|
|
21
|
+
|
|
22
|
+
module.exports = armor
|
package/src/cli/dotenvx-ops.js
CHANGED
|
@@ -97,6 +97,9 @@ if (shouldLoadRotateCommand) {
|
|
|
97
97
|
program.addCommand(require('./commands/rotate'))
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
+
// dotenvx-ops armor
|
|
101
|
+
program.addCommand(require('./commands/armor'))
|
|
102
|
+
|
|
100
103
|
// dotenvx-ops login
|
|
101
104
|
const loginAction = require('./actions/login')
|
|
102
105
|
program
|
|
@@ -124,7 +127,7 @@ program
|
|
|
124
127
|
const keypairAction = require('./actions/keypair')
|
|
125
128
|
program
|
|
126
129
|
.command('keypair')
|
|
127
|
-
.description('generate keypair')
|
|
130
|
+
.description('generate armored keypair ⛨')
|
|
128
131
|
.argument('[publicKey]', 'existing public key')
|
|
129
132
|
.option('-h, --hostname <url>', 'set hostname')
|
|
130
133
|
.option('--token <token>', 'set token')
|