notion-github 0.1.2 → 0.1.4
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/dist/cli.js +11 -0
- package/package.json +1 -1
- package/dist/cli.cjs +0 -66
- package/dist/cli.d.mts +0 -1
- package/dist/cli.d.ts +0 -1
- package/dist/cli.esm +0 -43
- package/dist/index.cjs +0 -31
- package/dist/index.d.mts +0 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.esm +0 -7
package/dist/cli.js
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
#!/usr/bin/env node
|
3
|
+
"use strict";
|
4
|
+
|
5
|
+
// src/cli.ts
|
6
|
+
var import_commander = require("commander");
|
7
|
+
var program = new import_commander.Command();
|
8
|
+
program.name("pr-cli").description("A simple CLI tool").version("0.1.2").action(() => {
|
9
|
+
console.log("Hello World");
|
10
|
+
});
|
11
|
+
program.parse();
|
package/package.json
CHANGED
package/dist/cli.cjs
DELETED
@@ -1,66 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
#!/usr/bin/env node
|
3
|
-
"use strict";
|
4
|
-
var __create = Object.create;
|
5
|
-
var __defProp = Object.defineProperty;
|
6
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
7
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
8
|
-
var __getProtoOf = Object.getPrototypeOf;
|
9
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
19
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
20
|
-
// file that has been converted to a CommonJS file using a Babel-
|
21
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
22
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
23
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
24
|
-
mod
|
25
|
-
));
|
26
|
-
|
27
|
-
// src/cli.ts
|
28
|
-
var import_commander = require("commander");
|
29
|
-
|
30
|
-
// src/commands/create.ts
|
31
|
-
var import_ora = __toESM(require("ora"));
|
32
|
-
async function create(options) {
|
33
|
-
const spinner = (0, import_ora.default)("Creating PR...").start();
|
34
|
-
try {
|
35
|
-
spinner.text = "Validating inputs...";
|
36
|
-
spinner.text = "Creating PR...";
|
37
|
-
spinner.succeed("PR created successfully!");
|
38
|
-
} catch (error) {
|
39
|
-
spinner.fail(`Failed to create PR: ${error.message}`);
|
40
|
-
process.exit(1);
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
// src/commands/read.ts
|
45
|
-
function read(options) {
|
46
|
-
console.log("Read command called with:", options);
|
47
|
-
}
|
48
|
-
|
49
|
-
// src/commands/update.ts
|
50
|
-
function update(options) {
|
51
|
-
console.log("Update command called with:", options);
|
52
|
-
}
|
53
|
-
|
54
|
-
// src/commands/remove.ts
|
55
|
-
function remove(options) {
|
56
|
-
console.log("Delete command called with:", options);
|
57
|
-
}
|
58
|
-
|
59
|
-
// src/cli.ts
|
60
|
-
var program = new import_commander.Command();
|
61
|
-
program.name("pr-cli").description("CLI for managing PRs").version("0.2.0");
|
62
|
-
program.command("create").description("Create a new PR").requiredOption("--title <title>", "PR title").option("--description <description>", "PR description").option("--branch <branch>", "Target branch", "main").action(create);
|
63
|
-
program.command("read").description("Read PR information").requiredOption("--id <id>", "PR ID").action(read);
|
64
|
-
program.command("update").description("Update an existing PR").requiredOption("--id <id>", "PR ID").option("--title <title>", "New PR title").option("--description <description>", "New PR description").action(update);
|
65
|
-
program.command("delete").description("Delete a PR").requiredOption("--id <id>", "PR ID").option("--force", "Force deletion", false).action(remove);
|
66
|
-
program.parse();
|
package/dist/cli.d.mts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
package/dist/cli.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
package/dist/cli.esm
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
#!/usr/bin/env node
|
3
|
-
|
4
|
-
// src/cli.ts
|
5
|
-
import { Command } from "commander";
|
6
|
-
|
7
|
-
// src/commands/create.ts
|
8
|
-
import ora from "ora";
|
9
|
-
async function create(options) {
|
10
|
-
const spinner = ora("Creating PR...").start();
|
11
|
-
try {
|
12
|
-
spinner.text = "Validating inputs...";
|
13
|
-
spinner.text = "Creating PR...";
|
14
|
-
spinner.succeed("PR created successfully!");
|
15
|
-
} catch (error) {
|
16
|
-
spinner.fail(`Failed to create PR: ${error.message}`);
|
17
|
-
process.exit(1);
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
// src/commands/read.ts
|
22
|
-
function read(options) {
|
23
|
-
console.log("Read command called with:", options);
|
24
|
-
}
|
25
|
-
|
26
|
-
// src/commands/update.ts
|
27
|
-
function update(options) {
|
28
|
-
console.log("Update command called with:", options);
|
29
|
-
}
|
30
|
-
|
31
|
-
// src/commands/remove.ts
|
32
|
-
function remove(options) {
|
33
|
-
console.log("Delete command called with:", options);
|
34
|
-
}
|
35
|
-
|
36
|
-
// src/cli.ts
|
37
|
-
var program = new Command();
|
38
|
-
program.name("pr-cli").description("CLI for managing PRs").version("0.2.0");
|
39
|
-
program.command("create").description("Create a new PR").requiredOption("--title <title>", "PR title").option("--description <description>", "PR description").option("--branch <branch>", "Target branch", "main").action(create);
|
40
|
-
program.command("read").description("Read PR information").requiredOption("--id <id>", "PR ID").action(read);
|
41
|
-
program.command("update").description("Update an existing PR").requiredOption("--id <id>", "PR ID").option("--title <title>", "New PR title").option("--description <description>", "New PR description").action(update);
|
42
|
-
program.command("delete").description("Delete a PR").requiredOption("--id <id>", "PR ID").option("--force", "Force deletion", false).action(remove);
|
43
|
-
program.parse();
|
package/dist/index.cjs
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/usr/bin/env node
|
2
|
-
"use strict";
|
3
|
-
var __defProp = Object.defineProperty;
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all)
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
10
|
-
};
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
13
|
-
for (let key of __getOwnPropNames(from))
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
16
|
-
}
|
17
|
-
return to;
|
18
|
-
};
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
20
|
-
|
21
|
-
// src/index.ts
|
22
|
-
var index_exports = {};
|
23
|
-
__export(index_exports, {
|
24
|
-
a: () => a
|
25
|
-
});
|
26
|
-
module.exports = __toCommonJS(index_exports);
|
27
|
-
var a = "hello";
|
28
|
-
// Annotate the CommonJS export names for ESM import in node:
|
29
|
-
0 && (module.exports = {
|
30
|
-
a
|
31
|
-
});
|
package/dist/index.d.mts
DELETED
package/dist/index.d.ts
DELETED