chofex-cli 0.1.143 → 0.1.144

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 CHANGED
@@ -13,6 +13,7 @@ The installed command is `chofex`:
13
13
  ```sh
14
14
  chofex
15
15
  chofex whoami
16
+ chofex update
16
17
  chofex upgrade
17
18
  chofex register
18
19
  chofex status
@@ -26,6 +27,9 @@ chofex challenge ranking
26
27
  chofex confirm
27
28
  ```
28
29
 
30
+ `chofex update` and `chofex upgrade` are interchangeable; both update the CLI
31
+ to the latest published version.
32
+
29
33
  `chofex register` collects and submits an application with full name, role,
30
34
  optional bio, portfolio URL, shipped project, LinkedIn and GitHub URLs, and
31
35
  Terms and Conditions. Use `--input` to submit a completed JSON application. The
package/dist/index.js CHANGED
@@ -62670,7 +62670,7 @@ var whoamiCommand = exports_Command.make("whoami", {}, exports_Effect.fn("whoami
62670
62670
  const operation = getCurrentUser({ apiUrl: options.apiUrl, token });
62671
62671
  yield* execute(options.output, operation, (result3) => `Authenticated as ${result3.email} (${result3.userId}, ${result3.tokenType}).`);
62672
62672
  })).pipe(exports_Command.withDescription("Verify the current Clerk authentication"));
62673
- var upgradeCommand = exports_Command.make("upgrade", {}, exports_Effect.fn("upgradeCommand")(function* () {
62673
+ var makeUpgradeCommand = (name) => exports_Command.make(name, {}, exports_Effect.fn("upgradeCommand")(function* () {
62674
62674
  const options = yield* root;
62675
62675
  const operation = exports_Effect.tryPromise({
62676
62676
  try: async () => {
@@ -62689,6 +62689,8 @@ var upgradeCommand = exports_Command.make("upgrade", {}, exports_Effect.fn("upgr
62689
62689
  });
62690
62690
  yield* execute(options.output, operation, () => `Updated ${cliPackageName} to the ${upgradeVersion} version.`);
62691
62691
  })).pipe(exports_Command.withDescription("Update chofex-cli to the latest version"));
62692
+ var updateCommand = makeUpgradeCommand("update");
62693
+ var upgradeCommand = makeUpgradeCommand("upgrade");
62692
62694
  var inputValidation = (stage, path4) => {
62693
62695
  if (stage === "application") {
62694
62696
  return applicationInput(path4, config.publicSiteUrl).pipe(exports_Effect.asVoid);
@@ -62750,6 +62752,7 @@ var command = root.pipe(exports_Command.withSubcommands([
62750
62752
  loginCommand,
62751
62753
  logoutCommand,
62752
62754
  whoamiCommand,
62755
+ updateCommand,
62753
62756
  upgradeCommand,
62754
62757
  validateCommand,
62755
62758
  registerCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chofex-cli",
3
- "version": "0.1.143",
3
+ "version": "0.1.144",
4
4
  "description": "Command-line client for Hack the Andes",
5
5
  "type": "module",
6
6
  "bin": {