Skip to content

Commit 900ac0e

Browse files
traynhamPitNikola
authored andcommitted
Added ABOUT THIS TEMPLATE comment.
1 parent 41b736c commit 900ac0e

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

templates/script-command.template.js

+19-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Dependency: This script requires Nodejs.
66
// Install Node: https://nodejs.org/en/download/
77
//
8-
// Duplicate this file and remove ".template." from the filename to get started.
8+
// Duplicate this file and remove ".template" from the filename to get started.
99
// See full documentation here: https://github.com/raycast/script-commands
1010
//
1111
// Required parameters:
@@ -24,6 +24,24 @@
2424
// @raycast.author Your name
2525
// @raycast.authorURL An URL for one of your social medias
2626

27+
/*
28+
29+
ABOUT THIS TEMPLATE:
30+
31+
This template is meant to be a quick starting point for creating a script command using Nodejs.
32+
33+
This template demonstrates the following ideas:
34+
35+
* Extracting passed arguments.
36+
* Using both required and optional arguments
37+
* URI Encoding
38+
* Outputting result to Raycast
39+
* Opening a url using exec and the unix open command
40+
* Use of destructuring
41+
* Use of template literals
42+
43+
*/
44+
2745
const { exec } = require('child_process')
2846

2947
// Use destructuring to grab arguments.

0 commit comments

Comments
 (0)