async run()

in src/commands/configuration/read.ts [15:29]


  async run() {
    const { flags } = await this.parse(ConfigurationRead)

    const configuration = new Configuration()

    if (!configuration.isValid) {
      this.error('configuration is empty', { exit: 1 })
    }

    if (flags.all) {
      this.log(JSON.stringify(configuration.config))
    } else {
      this.log(JSON.stringify(configuration.getProfile(flags.profile)))
    }
  }