Skip to content

Commit 72d8567

Browse files
committed
Update usage text + fix GH Actions
1 parent fcb722a commit 72d8567

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
- name: Verify bin script is executable
3333
run: |
3434
chmod +x bin/add-in.js
35-
node bin/add-in.js 2>&1 | grep -q "Usage: npx add-in"
35+
node bin/add-in.js --help 2>&1 | grep -q "Simple Usage:"

lib/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,19 +1005,19 @@ function printHelp(tool) {
10051005
console.log('Simple Usage:');
10061006
console.log(` ${tool} <name> <name> ...`);
10071007
console.log('');
1008-
console.log('Mix using numbered list index instead:');
1008+
console.log('Apply add-in using numbered list index instead:');
10091009
console.log(` ${tool} 1 3 5 ...`);
10101010
console.log('');
1011-
console.log('Mix file contents from gist URL:');
1011+
console.log('Apply add-in file contents from gist URL:');
10121012
console.log(` ${tool} <gist-url>`);
10131013
console.log('');
1014-
console.log('Delete previously mixed gists:');
1014+
console.log('Delete previous add-ins:');
10151015
console.log(` ${tool} -delete <name> <name> ...`);
10161016
console.log('');
10171017
console.log('Use custom project name instead of current folder name (replaces MyApp):');
10181018
console.log(` ${tool} -name ProjectName <name> <name> ...`);
10191019
console.log('');
1020-
console.log('Replace additional tokens before mixing:');
1020+
console.log('Replace additional tokens before applying add-in:');
10211021
console.log(` ${tool} -replace term=with <name> <name> ...`);
10221022
console.log('');
10231023
console.log('Multi replace with escaped string example:');

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
"add-in": "./bin/add-in.js"
88
},
99
"scripts": {
10-
"test": "node test/test.js"
10+
"test": "node test/test.js",
11+
"bump": "npm version patch && git push origin main --follow-tags",
12+
"bump:minor": "npm version minor && git push origin main --follow-tags",
13+
"bump:major": "npm version major && git push origin main --follow-tags",
14+
"release": "gh release create v$(node -p \"require('./package.json').version\") --title v$(node -p \"require('./package.json').version\") --generate-notes"
1115
},
1216
"keywords": ["servicestack", "mix", "gist", "cli"],
1317
"author": "ServiceStack",

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const { parseGistLinks } = require('../lib/index.js');
55
console.log('Testing parseGistLinks...');
66

77
const testMd = `
8-
# Mix Registry
8+
# Add-in Registry
99
1010
- [init](https://gist.github.com/gistlyn/58030e271595520d87873c5df5e14f60) {} \`project,sharp,ss\` Empty .NET 6.0 ServiceStack App
1111
- [redis](https://gist.github.com/gistlyn/67d6c72fba8e07c4aeb82d3bb6bfef0f) {to:"$HOST"} \`db\` Use ServiceStack.Redis

0 commit comments

Comments
 (0)