initx 0.0.9 → 0.0.10

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,58 @@ 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
+ # Enable
39
+ npx initx gpg true
40
+ # Disable
41
+ npx initx gpg false
42
+ ```
43
+
44
+ ## GPG
45
+
46
+ Select `Import or Export GPG key`
47
+
48
+ ### GPG import
49
+
50
+ Automatically read files ending with `publich.key` and `private.key` in the current directory
51
+
52
+ ```bash
53
+ npx initx gpg import
54
+ ```
55
+
56
+ ### GPG export
57
+
58
+ Export the public key and private key to the current directory
59
+
60
+ ```bash
61
+ # npx initx gpg export key_id filename
62
+ npx initx gpg export 92038B3E14C0D332542FB082B851A3E43D739400 home
63
+ ```
64
+
65
+ `home_public.key` and `home_private.key` will be created in the current directory
66
+
67
+ ## Clipboard
68
+
69
+ Copy some text to clipboard
70
+
71
+ ### SSH Public Key
72
+
73
+ ```bash
74
+ npx initx cp ssh
75
+ ```
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.10",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.10",
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.10",
30
+ "@initx-plugin/cp": "0.0.10",
31
+ "@initx-plugin/gpg": "0.0.10",
32
+ "@initx-plugin/git": "0.0.10"
33
33
  },
34
34
  "scripts": {
35
35
  "stub": "unbuild --stub",