@wildbappy/bappy-cli 0.1.2 → 0.1.3
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 +3 -1
- package/bin/bappy.js +5 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,9 @@ This package (`@wildbappy/bappy-cli`) remains supported for backwards compatibil
|
|
|
13
13
|
## First Run
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
comptracker "
|
|
16
|
+
comptracker --json "How many blog posts has [company name] made in the last 6 months, synthesize them and give me a list of headlines I can use for my own blog"
|
|
17
|
+
comptracker --json "Given the features offered by my other competitors in the market, does it seem like anyone is positioned to expand horizontally into new verticals? and if so, who?"
|
|
18
|
+
comptracker --json "Write me a report for marketing and sales copy that I can use to leapfrog the value propositions of the competition."
|
|
17
19
|
```
|
|
18
20
|
|
|
19
21
|
On first run, the CLI prompts for your token:
|
package/bin/bappy.js
CHANGED
|
@@ -218,6 +218,11 @@ function renderResult(result, asJson = false) {
|
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
if (answer && typeof answer.response === 'string' && answer.response.trim()) {
|
|
222
|
+
stdout.write(`${answer.response.trim()}\n`);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
221
226
|
if (result?.status && result?.result) {
|
|
222
227
|
stdout.write(`${JSON.stringify(result.result, null, 2)}\n`);
|
|
223
228
|
return;
|