Skip to content

Instantly share code, notes, and snippets.

@slovenianGooner
Last active March 13, 2021 21:16
Show Gist options
  • Save slovenianGooner/e2666faf04f164674d7470dae109f4b7 to your computer and use it in GitHub Desktop.
Save slovenianGooner/e2666faf04f164674d7470dae109f4b7 to your computer and use it in GitHub Desktop.
Example Fig spec
var completionSpec = {
name: "+",
description: "A set of aliases for everyday use.",
subcommands: [
{
name: "Download From Production",
description:
"Download the latest database dump and storage files from production.",
insertValue: "\b\b./download.sh\n",
},
{
name: "Compile & Push",
description: "Run 'npm run prod' and push to production.",
insertValue:
'\b\bnpm run prod; git add .; git commit -m "{cursor}"; git push origin HEAD',
},
{
name: "Push",
description: "Push to production.",
insertValue:
'\b\bgit add .; git commit -m "{cursor}"; git push origin HEAD',
},
{
name: "SSH: Adria Mobil",
description: "SSH into the Adria Mobil server.",
insertValue: "\b\bssh forge@amserver\n",
},
{
name: "SSH: Leeloop",
description: "SSH into the Leeloop server.",
insertValue: "\b\bssh forge@leeloop\n",
},
{
name: "SSH: Gooner",
description: "SSH into the Gooner server.",
insertValue: "\b\bssh gooner@gooner\n",
},
{
name: "SSH: Pi",
description: "SSH into the Pi server.",
insertValue: "\b\bssh pi@192.168.64.2\n",
},
],
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment