@tarout/cli 0.7.1 → 0.9.0

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.
@@ -2,9 +2,9 @@ import {
2
2
  createApiClient,
3
3
  getApiClient,
4
4
  resetApiClient
5
- } from "./chunk-Y6TWR3XZ.js";
5
+ } from "./chunk-CZPJYUNC.js";
6
6
  import "./chunk-5DAFGMBH.js";
7
- import "./chunk-K7JK5HIL.js";
7
+ import "./chunk-WKITMZ4U.js";
8
8
  export {
9
9
  createApiClient,
10
10
  getApiClient,
@@ -10,7 +10,7 @@ import {
10
10
  isJsonMode,
11
11
  jsonError,
12
12
  outputJson
13
- } from "./chunk-K7JK5HIL.js";
13
+ } from "./chunk-WKITMZ4U.js";
14
14
 
15
15
  // src/lib/api.ts
16
16
  import { createTRPCProxyClient, httpBatchLink } from "@trpc/client";
@@ -4,7 +4,7 @@ import {
4
4
  isJsonMode,
5
5
  isNonInteractiveMode,
6
6
  outputNeedsInput
7
- } from "./chunk-K7JK5HIL.js";
7
+ } from "./chunk-WKITMZ4U.js";
8
8
 
9
9
  // src/utils/prompts.ts
10
10
  import inquirer from "inquirer";
@@ -106,6 +106,11 @@ function success(message) {
106
106
  console.log(colors.success(`\u2713 ${message}`));
107
107
  }
108
108
  }
109
+ function warn(message) {
110
+ if (!globalOptions.json) {
111
+ console.log(colors.warn(`\u26A0 ${message}`));
112
+ }
113
+ }
109
114
  function error(message, suggestions) {
110
115
  if (globalOptions.json) {
111
116
  outputJson(jsonError("ERROR", message, suggestions));
@@ -197,6 +202,7 @@ export {
197
202
  getStatusBadge,
198
203
  log,
199
204
  success,
205
+ warn,
200
206
  error,
201
207
  table,
202
208
  outputData,