@initx-plugin/cp 0.0.14 → 0.0.16
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 +14 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,6 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
Copy plugin for `initx`
|
|
10
10
|
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @initx-plugin/cp -g
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Copy some text to clipboard
|
|
18
|
+
|
|
19
|
+
### SSH Public Key
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npx initx cp ssh
|
|
23
|
+
```
|
|
24
|
+
|
|
11
25
|
## Documentation
|
|
12
26
|
|
|
13
27
|
[initx](https://github.com/initx-collective/initx)
|
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InitxPlugin, InitxContext } from '@initx-plugin/core';
|
|
2
2
|
|
|
3
3
|
declare enum CpType {
|
|
4
4
|
SSH = "ssh"
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
declare class CpHandler extends
|
|
7
|
+
declare class CpHandler extends InitxPlugin {
|
|
8
8
|
matchers: {
|
|
9
9
|
matching: string;
|
|
10
10
|
description: string;
|
|
11
11
|
}[];
|
|
12
|
-
handle(_ctx:
|
|
12
|
+
handle(_ctx: InitxContext, cpType: CpType, ...others: string[]): Promise<void>;
|
|
13
13
|
[CpType.SSH](): Promise<void>;
|
|
14
14
|
private copy;
|
|
15
15
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InitxPlugin, InitxContext } from '@initx-plugin/core';
|
|
2
2
|
|
|
3
3
|
declare enum CpType {
|
|
4
4
|
SSH = "ssh"
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
declare class CpHandler extends
|
|
7
|
+
declare class CpHandler extends InitxPlugin {
|
|
8
8
|
matchers: {
|
|
9
9
|
matching: string;
|
|
10
10
|
description: string;
|
|
11
11
|
}[];
|
|
12
|
-
handle(_ctx:
|
|
12
|
+
handle(_ctx: InitxContext, cpType: CpType, ...others: string[]): Promise<void>;
|
|
13
13
|
[CpType.SSH](): Promise<void>;
|
|
14
14
|
private copy;
|
|
15
15
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import os from 'node:os';
|
|
|
2
2
|
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
import clipboard from 'clipboardy';
|
|
5
|
-
import {
|
|
5
|
+
import { InitxPlugin } from '@initx-plugin/core';
|
|
6
6
|
import { log, inquirer } from '@initx-plugin/utils';
|
|
7
7
|
|
|
8
8
|
var CpType = /* @__PURE__ */ ((CpType2) => {
|
|
@@ -16,7 +16,7 @@ var __publicField = (obj, key, value) => {
|
|
|
16
16
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
17
17
|
return value;
|
|
18
18
|
};
|
|
19
|
-
class CpHandler extends
|
|
19
|
+
class CpHandler extends InitxPlugin {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments);
|
|
22
22
|
__publicField(this, "matchers", [
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@initx-plugin/cp",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"description": "initx plugin, copy some text to clipboard",
|
|
6
6
|
"author": "imba97",
|
|
7
7
|
"license": "MIT",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@imba97/eslint-config": "^0.0.4",
|
|
33
|
-
"@types/node": "^22.
|
|
34
|
-
"bumpp": "^9.8.
|
|
35
|
-
"eslint": "^9.
|
|
33
|
+
"@types/node": "^22.9.0",
|
|
34
|
+
"bumpp": "^9.8.1",
|
|
35
|
+
"eslint": "^9.14.0",
|
|
36
36
|
"lint-staged": "^15.2.10",
|
|
37
37
|
"simple-git-hooks": "^2.11.1",
|
|
38
38
|
"typescript": "5.5.4",
|