@shortcut-cli/shortcut-cli 3.3.0 → 3.4.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.
- package/README.md +77 -73
- package/build/bin/short-create.js +573 -147
- package/build/bin/short-epics.js +158 -108
- package/build/bin/short-find.js +590 -5
- package/build/bin/short-install.js +132 -124
- package/build/bin/short-members.js +132 -78
- package/build/bin/short-projects.js +134 -81
- package/build/bin/short-search.js +598 -132
- package/build/bin/short-story.js +730 -357
- package/build/bin/short-workflows.js +129 -71
- package/build/bin/short-workspace.js +647 -126
- package/build/bin/short.js +35 -30
- package/build/lib/client.js +105 -8
- package/build/lib/configure.js +122 -99
- package/build/lib/spinner.js +33 -13
- package/build/lib/stories.js +455 -482
- package/package.json +27 -25
- package/build/tsconfig.tsbuildinfo +0 -1
package/build/bin/short.js
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
Object.defineProperty
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
|
|
25
|
+
// src/bin/short.ts
|
|
26
|
+
var import_commander = __toESM(require("commander"));
|
|
27
|
+
|
|
28
|
+
// package.json
|
|
29
|
+
var version = "3.4.0";
|
|
30
|
+
var description = "A community-driven command line tool for viewing, creating, and updating shortcut.com stories";
|
|
31
|
+
|
|
32
|
+
// src/bin/short.ts
|
|
33
|
+
process.on("unhandledRejection", console.log);
|
|
34
|
+
import_commander.default.version(version).description(description).command("install [options]", "install and configure API access").command("search [options] [SEARCH OPERATORS]", "search stories with optional query").alias("s").command("find [options] [SEARCH OPERATORS]", "[DEPRECATED] search stories with optional query").command("story ID [options]", "view or manipulate stories").alias("st").command("create [options]", "create a story").alias("c").command("members [options]", "list members").alias("m").command("workflows [options]", "list workflows and their states").alias("wf").command("epics [options]", "list epics and their states").alias("e").command("projects [options]", "list projects and their states").alias("p").command("workspace [NAME] [options]", "list stories matching saved workspace query", {
|
|
35
|
+
isDefault: true
|
|
36
|
+
}).alias("w").parse(process.argv);
|
package/build/lib/client.js
CHANGED
|
@@ -1,8 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/lib/client.ts
|
|
30
|
+
var client_exports = {};
|
|
31
|
+
__export(client_exports, {
|
|
32
|
+
default: () => client_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(client_exports);
|
|
35
|
+
var import_client = require("@shortcut/client");
|
|
36
|
+
|
|
37
|
+
// src/lib/configure.ts
|
|
38
|
+
var import_path = __toESM(require("path"));
|
|
39
|
+
var import_fs = __toESM(require("fs"));
|
|
40
|
+
var import_os = __toESM(require("os"));
|
|
41
|
+
function getConfigDir(suffix) {
|
|
42
|
+
const configBaseDir = process.env.XDG_CONFIG_HOME || import_path.default.resolve(process.env.XDG_DATA_HOME || import_os.default.homedir(), ".config");
|
|
43
|
+
return import_path.default.resolve(configBaseDir, suffix);
|
|
44
|
+
}
|
|
45
|
+
var configDir = getConfigDir("shortcut-cli");
|
|
46
|
+
var configFile = import_path.default.resolve(configDir, "config.json");
|
|
47
|
+
var legacyConfigDirs = [
|
|
48
|
+
getConfigDir("clubhouse-cli"),
|
|
49
|
+
import_path.default.resolve(import_os.default.homedir(), ".clubhouse-cli")
|
|
50
|
+
];
|
|
51
|
+
var CONFIG_CACHE = null;
|
|
52
|
+
var loadConfig = () => {
|
|
53
|
+
const config2 = loadCachedConfig();
|
|
54
|
+
if (!config2 || config2 === {} || !config2.token) {
|
|
55
|
+
console.error("Please run 'short install' to configure Shortcut API access.");
|
|
56
|
+
process.exit(11);
|
|
57
|
+
}
|
|
58
|
+
if (!config2.urlSlug) {
|
|
59
|
+
console.error(
|
|
60
|
+
"Your config must be updated with data from Shortcut. Please run 'short install --refresh'."
|
|
61
|
+
);
|
|
62
|
+
process.exit(12);
|
|
63
|
+
}
|
|
64
|
+
return config2;
|
|
65
|
+
};
|
|
66
|
+
var loadCachedConfig = () => {
|
|
67
|
+
if (CONFIG_CACHE) {
|
|
68
|
+
return { ...CONFIG_CACHE };
|
|
69
|
+
}
|
|
70
|
+
let config2 = {};
|
|
71
|
+
const token = process.env.SHORTCUT_API_TOKEN || process.env.CLUBHOUSE_API_TOKEN;
|
|
72
|
+
legacyConfigDirs.forEach((dir) => {
|
|
73
|
+
if (import_fs.default.existsSync(dir)) {
|
|
74
|
+
createConfigDir();
|
|
75
|
+
import_fs.default.renameSync(dir, configDir);
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
if (import_fs.default.existsSync(configFile)) {
|
|
79
|
+
try {
|
|
80
|
+
config2 = JSON.parse(import_fs.default.readFileSync(configFile, "utf8"));
|
|
81
|
+
} catch (e) {
|
|
82
|
+
console.error(e);
|
|
83
|
+
process.exit(10);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (token) {
|
|
87
|
+
config2 = { token, ...config2 };
|
|
88
|
+
}
|
|
89
|
+
CONFIG_CACHE = { ...config2 };
|
|
90
|
+
return config2;
|
|
91
|
+
};
|
|
92
|
+
var createConfigDir = () => {
|
|
93
|
+
const dir = import_path.default.dirname(configDir);
|
|
94
|
+
if (!import_fs.default.existsSync(dir)) {
|
|
95
|
+
import_fs.default.mkdirSync(dir);
|
|
96
|
+
}
|
|
97
|
+
if (!import_fs.default.existsSync(configDir)) {
|
|
98
|
+
import_fs.default.mkdirSync(configDir);
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// src/lib/client.ts
|
|
103
|
+
var config = loadConfig();
|
|
104
|
+
var client = new import_client.ShortcutClient(config.token);
|
|
105
|
+
var client_default = client;
|
package/build/lib/configure.js
CHANGED
|
@@ -1,115 +1,138 @@
|
|
|
1
|
-
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
10
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/lib/configure.ts
|
|
30
|
+
var configure_exports = {};
|
|
31
|
+
__export(configure_exports, {
|
|
32
|
+
default: () => configure_default,
|
|
33
|
+
loadCachedConfig: () => loadCachedConfig,
|
|
34
|
+
loadConfig: () => loadConfig,
|
|
35
|
+
updateConfig: () => updateConfig
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(configure_exports);
|
|
38
|
+
var import_path = __toESM(require("path"));
|
|
39
|
+
var import_fs = __toESM(require("fs"));
|
|
40
|
+
var import_os = __toESM(require("os"));
|
|
18
41
|
function getConfigDir(suffix) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return path.resolve(configBaseDir, suffix);
|
|
42
|
+
const configBaseDir = process.env.XDG_CONFIG_HOME || import_path.default.resolve(process.env.XDG_DATA_HOME || import_os.default.homedir(), ".config");
|
|
43
|
+
return import_path.default.resolve(configBaseDir, suffix);
|
|
22
44
|
}
|
|
23
|
-
var configDir = getConfigDir(
|
|
24
|
-
var configFile =
|
|
45
|
+
var configDir = getConfigDir("shortcut-cli");
|
|
46
|
+
var configFile = import_path.default.resolve(configDir, "config.json");
|
|
25
47
|
var legacyConfigDirs = [
|
|
26
|
-
|
|
27
|
-
|
|
48
|
+
getConfigDir("clubhouse-cli"),
|
|
49
|
+
import_path.default.resolve(import_os.default.homedir(), ".clubhouse-cli")
|
|
28
50
|
];
|
|
29
51
|
var CONFIG_CACHE = null;
|
|
30
|
-
var loadConfig =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
var loadConfig = () => {
|
|
53
|
+
const config = loadCachedConfig();
|
|
54
|
+
if (!config || config === {} || !config.token) {
|
|
55
|
+
console.error("Please run 'short install' to configure Shortcut API access.");
|
|
56
|
+
process.exit(11);
|
|
57
|
+
}
|
|
58
|
+
if (!config.urlSlug) {
|
|
59
|
+
console.error(
|
|
60
|
+
"Your config must be updated with data from Shortcut. Please run 'short install --refresh'."
|
|
61
|
+
);
|
|
62
|
+
process.exit(12);
|
|
63
|
+
}
|
|
64
|
+
return config;
|
|
42
65
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
66
|
+
var loadCachedConfig = () => {
|
|
67
|
+
if (CONFIG_CACHE) {
|
|
68
|
+
return { ...CONFIG_CACHE };
|
|
69
|
+
}
|
|
70
|
+
let config = {};
|
|
71
|
+
const token = process.env.SHORTCUT_API_TOKEN || process.env.CLUBHOUSE_API_TOKEN;
|
|
72
|
+
legacyConfigDirs.forEach((dir) => {
|
|
73
|
+
if (import_fs.default.existsSync(dir)) {
|
|
74
|
+
createConfigDir();
|
|
75
|
+
import_fs.default.renameSync(dir, configDir);
|
|
47
76
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
});
|
|
56
|
-
if (fs.existsSync(configFile)) {
|
|
57
|
-
try {
|
|
58
|
-
config = JSON.parse(fs.readFileSync(configFile, 'utf8'));
|
|
59
|
-
}
|
|
60
|
-
catch (e) {
|
|
61
|
-
console.error(e);
|
|
62
|
-
process.exit(10);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (token) {
|
|
66
|
-
config = __assign({ token: token }, config);
|
|
77
|
+
});
|
|
78
|
+
if (import_fs.default.existsSync(configFile)) {
|
|
79
|
+
try {
|
|
80
|
+
config = JSON.parse(import_fs.default.readFileSync(configFile, "utf8"));
|
|
81
|
+
} catch (e) {
|
|
82
|
+
console.error(e);
|
|
83
|
+
process.exit(10);
|
|
67
84
|
}
|
|
68
|
-
|
|
69
|
-
|
|
85
|
+
}
|
|
86
|
+
if (token) {
|
|
87
|
+
config = { token, ...config };
|
|
88
|
+
}
|
|
89
|
+
CONFIG_CACHE = { ...config };
|
|
90
|
+
return config;
|
|
70
91
|
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
92
|
+
var createConfigDir = () => {
|
|
93
|
+
const dir = import_path.default.dirname(configDir);
|
|
94
|
+
if (!import_fs.default.existsSync(dir)) {
|
|
95
|
+
import_fs.default.mkdirSync(dir);
|
|
96
|
+
}
|
|
97
|
+
if (!import_fs.default.existsSync(configDir)) {
|
|
98
|
+
import_fs.default.mkdirSync(configDir);
|
|
99
|
+
}
|
|
80
100
|
};
|
|
81
|
-
var saveConfig =
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
}
|
|
101
|
+
var saveConfig = (config) => {
|
|
102
|
+
try {
|
|
103
|
+
createConfigDir();
|
|
104
|
+
import_fs.default.writeFileSync(configFile, JSON.stringify(config), { flag: "w" });
|
|
105
|
+
CONFIG_CACHE = { ...config };
|
|
106
|
+
return true;
|
|
107
|
+
} catch (e) {
|
|
108
|
+
console.error(e);
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
92
111
|
};
|
|
93
|
-
var updateConfig =
|
|
94
|
-
|
|
95
|
-
|
|
112
|
+
var updateConfig = (newConfig) => {
|
|
113
|
+
const extantConfig = loadCachedConfig() || {};
|
|
114
|
+
return saveConfig({ ...newConfig, ...extantConfig });
|
|
96
115
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return saveConfig(__assign({ workspaces: workspaces }, extantConfig));
|
|
116
|
+
var saveWorkspace = (name, workspace) => {
|
|
117
|
+
const extantConfig = loadCachedConfig();
|
|
118
|
+
const workspaces = extantConfig.workspaces || {};
|
|
119
|
+
workspaces[name] = workspace;
|
|
120
|
+
return saveConfig({ workspaces, ...extantConfig });
|
|
103
121
|
};
|
|
104
|
-
var removeWorkspace =
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
122
|
+
var removeWorkspace = (name) => {
|
|
123
|
+
const extant = loadCachedConfig();
|
|
124
|
+
delete extant.workspaces[name];
|
|
125
|
+
return saveConfig(Object.assign({}, extant));
|
|
108
126
|
};
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
127
|
+
var configure_default = {
|
|
128
|
+
loadConfig,
|
|
129
|
+
updateConfig,
|
|
130
|
+
saveWorkspace,
|
|
131
|
+
removeWorkspace
|
|
114
132
|
};
|
|
115
|
-
|
|
133
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
134
|
+
0 && (module.exports = {
|
|
135
|
+
loadCachedConfig,
|
|
136
|
+
loadConfig,
|
|
137
|
+
updateConfig
|
|
138
|
+
});
|
package/build/lib/spinner.js
CHANGED
|
@@ -1,14 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
stream: process.stderr,
|
|
9
|
-
});
|
|
10
|
-
spin.setSpinnerString(27);
|
|
11
|
-
return spin;
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
8
|
};
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/lib/spinner.ts
|
|
20
|
+
var spinner_exports = {};
|
|
21
|
+
__export(spinner_exports, {
|
|
22
|
+
default: () => spinner_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(spinner_exports);
|
|
25
|
+
var import_cli_spinner = require("cli-spinner");
|
|
26
|
+
var spinner = (text = "") => {
|
|
27
|
+
const spin = new import_cli_spinner.Spinner({
|
|
28
|
+
text: text ? text : "Loading... %s ",
|
|
29
|
+
stream: process.stderr
|
|
30
|
+
});
|
|
31
|
+
spin.setSpinnerString(27);
|
|
32
|
+
return spin;
|
|
33
|
+
};
|
|
34
|
+
var spinner_default = spinner;
|