Skip to content

Commit

Permalink
Added ABOUT THIS TEMPLATE comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
traynham authored and PitNikola committed Dec 7, 2020
1 parent 41b736c commit 900ac0e
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion templates/script-command.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Dependency: This script requires Nodejs.
// Install Node: https://nodejs.org/en/download/
//
// Duplicate this file and remove ".template." from the filename to get started.
// Duplicate this file and remove ".template" from the filename to get started.
// See full documentation here: https://github.com/raycast/script-commands
//
// Required parameters:
Expand All @@ -24,6 +24,24 @@
// @raycast.author Your name
// @raycast.authorURL An URL for one of your social medias

/*
ABOUT THIS TEMPLATE:
This template is meant to be a quick starting point for creating a script command using Nodejs.
This template demonstrates the following ideas:
* Extracting passed arguments.
* Using both required and optional arguments
* URI Encoding
* Outputting result to Raycast
* Opening a url using exec and the unix open command
* Use of destructuring
* Use of template literals
*/

const { exec } = require('child_process')

// Use destructuring to grab arguments.
Expand Down

0 comments on commit 900ac0e

Please sign in to comment.