@dsmrt/axiom-cli 0.0.8-alpha.0 → 0.0.9

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.
@@ -1,11 +1,12 @@
1
- import { CommandModule, ArgumentsCamelCase } from "yargs";
1
+ import { CommandModule, ArgumentsCamelCase, CommandBuilder } from "yargs";
2
2
  interface ConfigOptions {
3
3
  env: string;
4
4
  }
5
5
  export declare class Config<U extends ConfigOptions> implements CommandModule<object, U> {
6
6
  command: string;
7
7
  describe: string;
8
+ builder?: CommandBuilder<object, U> | undefined;
8
9
  handler: (args: ArgumentsCamelCase<U>) => Promise<void>;
9
- loadConfig: (args: ConfigOptions) => Promise<import("@dsmrt/axiom-config").Config & object>;
10
+ loadConfig: (args: ConfigOptions) => Promise<object & import("@dsmrt/axiom-config").BaseConfig>;
10
11
  }
11
12
  export {};
@@ -5,6 +5,12 @@ const axiom_config_1 = require("@dsmrt/axiom-config");
5
5
  class Config {
6
6
  command = "config";
7
7
  describe = "print the config";
8
+ builder = (args) => {
9
+ args.option("env", {
10
+ type: "string",
11
+ });
12
+ return args;
13
+ };
8
14
  handler = async (args) => {
9
15
  console.log(await this.loadConfig(args));
10
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dsmrt/axiom-cli",
3
- "version": "0.0.8-alpha.0",
3
+ "version": "0.0.9",
4
4
  "description": "axiom cli for managing configs including secrets",
5
5
  "main": "lib/bin/axiom.js",
6
6
  "types": "lib/index.d.ts",
@@ -48,8 +48,8 @@
48
48
  "chalk": "^4.1.2",
49
49
  "inquirer": "^8.0.0",
50
50
  "yargs": "^17.7.2",
51
- "@dsmrt/axiom-aws-sdk": "^0.0.8-alpha.0",
52
- "@dsmrt/axiom-config": "^0.0.8-alpha.0"
51
+ "@dsmrt/axiom-aws-sdk": "^0.0.9",
52
+ "@dsmrt/axiom-config": "^0.0.9"
53
53
  },
54
54
  "scripts": {
55
55
  "lint": "eslint ./src/ --ext .ts",