@staff0rd/assist 0.69.0 → 0.71.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/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Command } from "commander";
|
|
|
6
6
|
// package.json
|
|
7
7
|
var package_default = {
|
|
8
8
|
name: "@staff0rd/assist",
|
|
9
|
-
version: "0.
|
|
9
|
+
version: "0.71.0",
|
|
10
10
|
type: "module",
|
|
11
11
|
main: "dist/index.js",
|
|
12
12
|
bin: {
|
|
@@ -2100,6 +2100,7 @@ async function start(id) {
|
|
|
2100
2100
|
}
|
|
2101
2101
|
|
|
2102
2102
|
// src/commands/backlog/web/index.ts
|
|
2103
|
+
import { exec } from "child_process";
|
|
2103
2104
|
import { createServer } from "http";
|
|
2104
2105
|
import chalk28 from "chalk";
|
|
2105
2106
|
|
|
@@ -2286,12 +2287,14 @@ async function handleRequest(req, res, port) {
|
|
|
2286
2287
|
// src/commands/backlog/web/index.ts
|
|
2287
2288
|
async function web(options2) {
|
|
2288
2289
|
const port = Number.parseInt(options2.port, 10);
|
|
2290
|
+
const url = `http://localhost:${port}`;
|
|
2289
2291
|
const server = createServer((req, res) => {
|
|
2290
2292
|
handleRequest(req, res, port);
|
|
2291
2293
|
});
|
|
2292
2294
|
server.listen(port, () => {
|
|
2293
|
-
console.log(chalk28.green(`Backlog web view:
|
|
2295
|
+
console.log(chalk28.green(`Backlog web view: ${url}`));
|
|
2294
2296
|
console.log(chalk28.dim("Press Ctrl+C to stop"));
|
|
2297
|
+
exec(`open ${url}`);
|
|
2295
2298
|
});
|
|
2296
2299
|
}
|
|
2297
2300
|
|
|
@@ -5613,13 +5616,10 @@ var configCommand = program.command("config").description("View and modify assis
|
|
|
5613
5616
|
configCommand.command("set <key> <value>").description("Set a config value (e.g. commit.push true)").action(configSet);
|
|
5614
5617
|
configCommand.command("get <key>").description("Get a config value").action(configGet);
|
|
5615
5618
|
configCommand.command("list").description("List all config values").action(configList);
|
|
5616
|
-
var runCommand = program.command("run").description("Run a configured command from assist.yml").argument("
|
|
5617
|
-
if (!name) {
|
|
5618
|
-
listRunConfigs();
|
|
5619
|
-
return;
|
|
5620
|
-
}
|
|
5619
|
+
var runCommand = program.command("run").description("Run a configured command from assist.yml").argument("<name>", "Name of the configured command").argument("[args...]", "Arguments to pass to the command").allowUnknownOption().action((name, args) => {
|
|
5621
5620
|
run2(name, args);
|
|
5622
5621
|
});
|
|
5622
|
+
runCommand.command("list").description("List configured run commands").action(listRunConfigs);
|
|
5623
5623
|
runCommand.command("add").description("Add a new run configuration to assist.yml").allowUnknownOption().allowExcessArguments().action(() => add2());
|
|
5624
5624
|
registerNew(program);
|
|
5625
5625
|
var lintCommand = program.command("lint").description("Run lint checks for conventions not enforced by biomejs").action(lint);
|