git-stack-cli 2.7.2 → 2.7.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/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.2";
37536
+ const local_version = "2.7.4";
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 });
@@ -37586,7 +37586,7 @@ function AutoUpdate(props) {
37586
37586
  }, JSON.stringify({ semver_result })));
37587
37587
  switch (semver_result) {
37588
37588
  case 0: {
37589
- info(/* @__PURE__ */ React19.createElement(Text, null, "✅ Everything up to date. ", /* @__PURE__ */ React19.createElement(Brackets, null, latest_version)));
37589
+ info_quiet(/* @__PURE__ */ React19.createElement(Text, null, "✅ Everything up to date. ", /* @__PURE__ */ React19.createElement(Brackets, null, latest_version)));
37590
37590
  return patch({ status: "done" });
37591
37591
  }
37592
37592
  case 1: {
@@ -37606,7 +37606,7 @@ function AutoUpdate(props) {
37606
37606
  return patch({ status: "prompt" });
37607
37607
  }
37608
37608
  case -1: {
37609
- info(/* @__PURE__ */ React19.createElement(FormatText, {
37609
+ info_quiet(/* @__PURE__ */ React19.createElement(FormatText, {
37610
37610
  message: "⚠️ Local version {local_version} is newer than latest version {latest_version}",
37611
37611
  values: {
37612
37612
  local_version: /* @__PURE__ */ React19.createElement(Brackets, null, local_version),
@@ -37622,6 +37622,9 @@ function AutoUpdate(props) {
37622
37622
  }
37623
37623
  }
37624
37624
  function info(node) {
37625
+ handle_output(node);
37626
+ }
37627
+ function info_quiet(node) {
37625
37628
  if (props_ref.current.verbose || props_ref.current.force) {
37626
37629
  handle_output(node);
37627
37630
  }
@@ -37632,7 +37635,7 @@ function AutoUpdate(props) {
37632
37635
  }
37633
37636
  }
37634
37637
  function abort(error) {
37635
- info(/* @__PURE__ */ React19.createElement(Text, {
37638
+ info_quiet(/* @__PURE__ */ React19.createElement(Text, {
37636
37639
  key: "error",
37637
37640
  color: colors.red
37638
37641
  }, error.message));
@@ -45573,10 +45576,13 @@ async function command2(argv, options = {}) {
45573
45576
  if (options.parserConfiguration) {
45574
45577
  builder = builder.parserConfiguration(options.parserConfiguration);
45575
45578
  }
45576
- if (options.env_config) {
45577
- builder = builder.config(options.env_config);
45578
- }
45579
- const parsed = await builder.scriptName("git stack").usage("Usage: git stack [command] [options]").command("$0", "Sync commit ranges to Github", (yargs) => yargs.options(DefaultOptions)).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.2").showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`").help("help", "Show usage via `git stack help`");
45579
+ const parsed = await builder.scriptName("git stack").usage("Usage: git stack [command] [options]").command("$0", "Sync commit ranges to Github", (yargs) => {
45580
+ let builder2 = yargs.options(DefaultOptions);
45581
+ if (options.env_config) {
45582
+ builder2 = builder2.config(options.env_config);
45583
+ }
45584
+ return builder2;
45585
+ }).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.4").showHidden("show-hidden", "Show hidden options via `git stack help --show-hidden`").help("help", "Show usage via `git stack help`");
45580
45586
  const result = parsed.argv;
45581
45587
  return result;
45582
45588
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-stack-cli",
3
- "version": "2.7.2",
3
+ "version": "2.7.4",
4
4
  "description": "",
5
5
  "author": "magus",
6
6
  "license": "MIT",
@@ -218,7 +218,7 @@ export function AutoUpdate(props: Props) {
218
218
 
219
219
  switch (semver_result) {
220
220
  case 0: {
221
- info(
221
+ info_quiet(
222
222
  <Ink.Text>
223
223
  ✅ Everything up to date. <Brackets>{latest_version}</Brackets>
224
224
  </Ink.Text>,
@@ -248,7 +248,7 @@ export function AutoUpdate(props: Props) {
248
248
  }
249
249
 
250
250
  case -1: {
251
- info(
251
+ info_quiet(
252
252
  <FormatText
253
253
  message="⚠️ Local version {local_version} is newer than latest version {latest_version}"
254
254
  values={{
@@ -269,6 +269,10 @@ export function AutoUpdate(props: Props) {
269
269
  }
270
270
 
271
271
  function info(node: React.ReactNode) {
272
+ handle_output(node);
273
+ }
274
+
275
+ function info_quiet(node: React.ReactNode) {
272
276
  if (props_ref.current.verbose || props_ref.current.force) {
273
277
  handle_output(node);
274
278
  }
@@ -280,7 +284,7 @@ export function AutoUpdate(props: Props) {
280
284
  }
281
285
  }
282
286
  function abort(error: Error) {
283
- info(
287
+ info_quiet(
284
288
  <Ink.Text key="error" color={colors.red}>
285
289
  {error.message}
286
290
  </Ink.Text>,
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) => yargs.options(DefaultOptions))
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",