@heyamiko/amiko-cli 0.5.18 → 0.5.19
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/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -75833,8 +75833,8 @@ function registerUpdateCommand(program2) {
|
|
|
75833
75833
|
// src/commands/search.ts
|
|
75834
75834
|
var TREASURY = "FPiZAf3jEnNfCwfvbv46jdPfHbmSepD4Q6iHiLJDQXvb";
|
|
75835
75835
|
function registerSearchCommand(program2) {
|
|
75836
|
-
program2.command("search <query>").description("Search
|
|
75837
|
-
const spinner = ora("
|
|
75836
|
+
program2.command("search <query>").description("X Search — pays 1 AMIKO token per search").option("--raw", "Output raw JSON").action(async (query, opts) => {
|
|
75837
|
+
const spinner = ora("X Search...").start();
|
|
75838
75838
|
try {
|
|
75839
75839
|
const config2 = loadConfig();
|
|
75840
75840
|
const auth = resolveAuth(config2);
|
|
@@ -75902,7 +75902,7 @@ function registerSearchCommand(program2) {
|
|
|
75902
75902
|
console.log(JSON.stringify(data, null, 2));
|
|
75903
75903
|
return;
|
|
75904
75904
|
}
|
|
75905
|
-
console.log(heading(`X Search
|
|
75905
|
+
console.log(heading(`X Search — "${query}"
|
|
75906
75906
|
`));
|
|
75907
75907
|
const tweets = data.data || [];
|
|
75908
75908
|
if (tweets.length === 0) {
|