git-stack-cli 2.7.2 → 2.7.3
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/js/index.js +8 -5
- package/package.json +1 -1
- package/src/command.ts +13 -8
package/dist/js/index.js
CHANGED
|
@@ -37533,7 +37533,7 @@ function AutoUpdate(props) {
|
|
|
37533
37533
|
async function init_state() {
|
|
37534
37534
|
if (state.latest_version !== null)
|
|
37535
37535
|
return;
|
|
37536
|
-
const local_version = "2.7.
|
|
37536
|
+
const local_version = "2.7.3";
|
|
37537
37537
|
const latest_version = await get_latest_version();
|
|
37538
37538
|
const is_brew_bun_standalone = get_is_brew_bun_standalone();
|
|
37539
37539
|
patch({ local_version, latest_version, is_brew_bun_standalone });
|
|
@@ -45573,10 +45573,13 @@ async function command2(argv, options = {}) {
|
|
|
45573
45573
|
if (options.parserConfiguration) {
|
|
45574
45574
|
builder = builder.parserConfiguration(options.parserConfiguration);
|
|
45575
45575
|
}
|
|
45576
|
-
|
|
45577
|
-
|
|
45578
|
-
|
|
45579
|
-
|
|
45576
|
+
const parsed = await builder.scriptName("git stack").usage("Usage: git stack [command] [options]").command("$0", "Sync commit ranges to Github", (yargs) => {
|
|
45577
|
+
let builder2 = yargs.options(DefaultOptions);
|
|
45578
|
+
if (options.env_config) {
|
|
45579
|
+
builder2 = builder2.config(options.env_config);
|
|
45580
|
+
}
|
|
45581
|
+
return builder2;
|
|
45582
|
+
}).command("fixup [commit]", "Amend staged changes to a specific commit in history", (yargs) => yargs.positional("commit", FixupOptions.commit)).command("log [args...]", "Print an abbreviated log with numbered commits, useful for git stack fixup", (yargs) => yargs.strict(false)).command("rebase", "Update local branch via rebase with latest changes from origin master branch", (yargs) => yargs).command(["update", "upgrade"], "Check and install the latest version of git stack", (yargs) => yargs).command("config", "Generate a one-time configuration json based on the passed arguments", (yargs) => yargs.options(DefaultOptions)).option("verbose", GlobalOptions.verbose).wrap(123).strict().version("2.7.3").showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`").help("help", "Show usage via `git stack help`");
|
|
45580
45583
|
const result = parsed.argv;
|
|
45581
45584
|
return result;
|
|
45582
45585
|
}
|
package/package.json
CHANGED
package/src/command.ts
CHANGED
|
@@ -18,18 +18,22 @@ export async function command(argv: string[], options: CommandOptions = {}) {
|
|
|
18
18
|
builder = builder.parserConfiguration(options.parserConfiguration);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// apply overrides from config
|
|
22
|
-
// higher precedence than defaults, but lower precendence than cli flags
|
|
23
|
-
// perfect since that's what we want, prefer config only if not explicitly set on cli
|
|
24
|
-
if (options.env_config) {
|
|
25
|
-
builder = builder.config(options.env_config);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
21
|
const parsed = await builder
|
|
29
22
|
.scriptName("git stack")
|
|
30
23
|
.usage("Usage: git stack [command] [options]")
|
|
31
24
|
|
|
32
|
-
.command("$0", "Sync commit ranges to Github", (yargs) =>
|
|
25
|
+
.command("$0", "Sync commit ranges to Github", (yargs) => {
|
|
26
|
+
let builder = yargs.options(DefaultOptions);
|
|
27
|
+
|
|
28
|
+
// apply overrides from config
|
|
29
|
+
// higher precedence than defaults, but lower precendence than cli flags
|
|
30
|
+
// perfect since that's what we want, prefer config only if not explicitly set on cli
|
|
31
|
+
if (options.env_config) {
|
|
32
|
+
builder = builder.config(options.env_config);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return builder;
|
|
36
|
+
})
|
|
33
37
|
|
|
34
38
|
.command("fixup [commit]", "Amend staged changes to a specific commit in history", (yargs) =>
|
|
35
39
|
yargs.positional("commit", FixupOptions.commit),
|
|
@@ -52,6 +56,7 @@ export async function command(argv: string[], options: CommandOptions = {}) {
|
|
|
52
56
|
"Check and install the latest version of git stack",
|
|
53
57
|
(yargs) => yargs,
|
|
54
58
|
)
|
|
59
|
+
|
|
55
60
|
.command(
|
|
56
61
|
"config",
|
|
57
62
|
"Generate a one-time configuration json based on the passed arguments",
|