initx 0.0.9 → 0.0.11

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/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  Create a new repository or modify the remote repository address in the current directory
12
12
 
13
- ```
13
+ ```bash
14
14
  npx initx git@github.com:user/repository.git
15
15
  ```
16
16
 
@@ -18,6 +18,65 @@ npx initx git@github.com:user/repository.git
18
18
 
19
19
  Specify a branch name
20
20
 
21
- ```
21
+ ```bash
22
22
  npx initx git@github.com:user/repository.git main
23
23
  ```
24
+
25
+ ### Git User
26
+
27
+ Set git username and email
28
+
29
+ ```bash
30
+ npx initx user mail@example.com your_name
31
+ ```
32
+
33
+ ### Git GPG
34
+
35
+ Select `Enable or disable GPG signing for git commits`, Set git commit signature
36
+
37
+ ```bash
38
+ # npx initx gpg [true|false]
39
+ npx initx gpg true
40
+ ```
41
+
42
+ ## GPG
43
+
44
+ Select `GPG key management`
45
+
46
+ ### GPG import
47
+
48
+ Automatically read files ending with `publich.key` and `private.key` in the current directory
49
+
50
+ ```bash
51
+ npx initx gpg import
52
+ ```
53
+
54
+ ### GPG export
55
+
56
+ Export the public key and private key to the current directory
57
+
58
+ ```bash
59
+ # npx initx gpg export [filename]?
60
+ npx initx gpg export home
61
+ ```
62
+
63
+ `home_public.key` and `home_private.key` will be created in the current directory
64
+
65
+ ### GPG delete
66
+
67
+ Delete the public key and private key
68
+
69
+ ```bash
70
+ # npx initx gpg delete [public|private]?
71
+ npx initx gpg delete
72
+ ```
73
+
74
+ ## Clipboard
75
+
76
+ Copy some text to clipboard
77
+
78
+ ### SSH Public Key
79
+
80
+ ```bash
81
+ npx initx cp ssh
82
+ ```
package/dist/cli.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import cac from 'cac';
2
2
  import inquirer from 'inquirer';
3
- import { GitHandler } from '@initx-plugin/git';
4
- import { CpHandler } from '@initx-plugin/cp';
5
- import { GpgHandler } from '@initx-plugin/gpg';
3
+ import GitHandler from '@initx-plugin/git';
4
+ import CpHandler from '@initx-plugin/cp';
5
+ import GpgHandler from '@initx-plugin/gpg';
6
6
 
7
- const pkgJson = {name:"initx",type:"module",version:"0.0.9",packageManager:"pnpm@9.12.2",description:"More convenient initialization tool",author:"imba97",license:"MIT",homepage:"https://github.com/imba97/initx#readme",repository:{type:"git",url:"git+ssh://git@github.com/imba97/initx"},bugs:{url:"https://github.com/imba97/initx/issues"},keywords:["initx"],main:"dist/index.mjs",module:"dist/index.mjs",types:"dist/index.d.ts",bin:"bin/initx.mjs",files:["dist"],scripts:{stub:"unbuild --stub",build:"unbuild"},dependencies:{"@initx-plugin/core":"workspace:*","@initx-plugin/cp":"workspace:*","@initx-plugin/git":"workspace:*","@initx-plugin/gpg":"workspace:*",cac:"^6.7.14",inquirer:"^12.0.0"}};
7
+ const pkgJson = {name:"initx",type:"module",version:"0.0.11",packageManager:"pnpm@9.12.2",description:"More convenient initialization tool",author:"imba97",license:"MIT",homepage:"https://github.com/imba97/initx#readme",repository:{type:"git",url:"git+ssh://git@github.com/imba97/initx"},bugs:{url:"https://github.com/imba97/initx/issues"},keywords:["initx"],main:"dist/index.mjs",module:"dist/index.mjs",types:"dist/index.d.ts",bin:"bin/initx.mjs",files:["dist"],scripts:{stub:"unbuild --stub",build:"unbuild"},dependencies:{"@initx-plugin/core":"workspace:*","@initx-plugin/cp":"workspace:*","@initx-plugin/git":"workspace:*","@initx-plugin/gpg":"workspace:*",cac:"^6.7.14",inquirer:"^12.0.0"}};
8
8
 
9
9
  function getDefaultExportFromCjs (x) {
10
10
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
- export { GitHandler } from '@initx-plugin/git';
2
- export { CpHandler } from '@initx-plugin/cp';
1
+ export { default as GitHandler } from '@initx-plugin/git';
2
+ export { default as CpHandler } from '@initx-plugin/cp';
3
+ export { default as GpgHandler } from '@initx-plugin/gpg';
3
4
  export * from '@initx-plugin/core';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export { GitHandler } from '@initx-plugin/git';
2
- export { CpHandler } from '@initx-plugin/cp';
1
+ export { default as GitHandler } from '@initx-plugin/git';
2
+ export { default as CpHandler } from '@initx-plugin/cp';
3
+ export { default as GpgHandler } from '@initx-plugin/gpg';
3
4
  export * from '@initx-plugin/core';
package/dist/index.mjs CHANGED
@@ -1,3 +1,4 @@
1
- export { GitHandler } from '@initx-plugin/git';
2
- export { CpHandler } from '@initx-plugin/cp';
1
+ export { default as GitHandler } from '@initx-plugin/git';
2
+ export { default as CpHandler } from '@initx-plugin/cp';
3
+ export { default as GpgHandler } from '@initx-plugin/gpg';
3
4
  export * from '@initx-plugin/core';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "initx",
3
3
  "type": "module",
4
- "version": "0.0.9",
4
+ "version": "0.0.11",
5
5
  "description": "More convenient initialization tool",
6
6
  "author": "imba97",
7
7
  "license": "MIT",
@@ -26,10 +26,10 @@
26
26
  "dependencies": {
27
27
  "cac": "^6.7.14",
28
28
  "inquirer": "^12.0.0",
29
- "@initx-plugin/cp": "0.0.9",
30
- "@initx-plugin/core": "0.0.9",
31
- "@initx-plugin/git": "0.0.9",
32
- "@initx-plugin/gpg": "0.0.9"
29
+ "@initx-plugin/core": "0.0.11",
30
+ "@initx-plugin/cp": "0.0.11",
31
+ "@initx-plugin/gpg": "0.0.11",
32
+ "@initx-plugin/git": "0.0.11"
33
33
  },
34
34
  "scripts": {
35
35
  "stub": "unbuild --stub",