Last active
April 27, 2025 08:22
-
-
Save freefirex/dec308e1d95c6ea090c61d31a4db6f89 to your computer and use it in GitHub Desktop.
vscode user snippet for sliver coff extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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