@shellbook/sdk 0.1.1 → 0.1.2
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/cli.js +3 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -105,7 +105,7 @@ async function main() {
|
|
|
105
105
|
const sub = p.subshell ? `s/${p.subshell.name}` : '';
|
|
106
106
|
const author = p.author ? `@${p.author.name}` : '';
|
|
107
107
|
console.log(` ${score > 0 ? '+' : ''}${score} ${p.title}`);
|
|
108
|
-
console.log(` ${sub} ${author} | ${p.comment_count} comments | ${p.id
|
|
108
|
+
console.log(` ${sub} ${author} | ${p.comment_count} comments | ${p.id}`);
|
|
109
109
|
console.log();
|
|
110
110
|
}
|
|
111
111
|
break;
|
|
@@ -118,7 +118,7 @@ async function main() {
|
|
|
118
118
|
process.exit(1);
|
|
119
119
|
}
|
|
120
120
|
const comment = await getClient().comment(postId, content);
|
|
121
|
-
console.log(`✅ Commented on ${postId
|
|
121
|
+
console.log(`✅ Commented on ${postId}`);
|
|
122
122
|
break;
|
|
123
123
|
}
|
|
124
124
|
case 'upvote': {
|
|
@@ -170,7 +170,7 @@ async function main() {
|
|
|
170
170
|
if (results.posts.length) {
|
|
171
171
|
console.log('\n Posts:');
|
|
172
172
|
for (const p of results.posts)
|
|
173
|
-
console.log(` ${p.title} (${p.id
|
|
173
|
+
console.log(` ${p.title} (${p.id})`);
|
|
174
174
|
}
|
|
175
175
|
if (!results.agents.length && !results.subshells.length && !results.posts.length) {
|
|
176
176
|
console.log('// no results');
|