Skip to content

Instantly share code, notes, and snippets.

@freefirex
Last active February 16, 2023 16:55
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save freefirex/dec308e1d95c6ea090c61d31a4db6f89 to your computer and use it in GitHub Desktop.
Save freefirex/dec308e1d95c6ea090c61d31a4db6f89 to your computer and use it in GitHub Desktop.
vscode user snippet for sliver coff extensions
{
"SliverExtension" :{
"prefix": "sliverext",
"body": [ "{",
"\"name\": \"$1\",",
"\"version\": \"0.0.0\",",
"\"command_name\": \"$2\",",
"\"extension_author\": \"$3\",",
"\"original_author\": \"$3\",",
"\"repo_url\": \"N/A\",",
"\"help\": \"$4\",",
"\"depends_on\": \"coff-loader\",",
"\"entrypoint\": \"go\",",
"\"files\": [",
"{",
"\"os\": \"windows\",",
"\"arch\": \"amd64\",",
"\"path\": \"$1.x64.o\"",
"},",
"{",
"\"os\": \"windows\",",
"\"arch\": \"386\",",
"\"path\": \"$1.x86.o\"",
"}",
"],",
"\"arguments\": []",
"}"
],
"description": "sliver extension template"
},
"SliverArgument" : {
"prefix": "sliverarg",
"body": [ "{",
"\"name\": \"$1\",",
"\"desc\": \"$2\",",
"\"type\": \"${3|int,string,wstring,short,file|}\",",
"\"optional\": ${4|true,false|}",
"}",
],
"description": "sliver extension argument"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment