Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.28 KB

File metadata and controls

44 lines (27 loc) · 1.28 KB

Namespaces

nsroot is the root folder of namespaces and each namespace has its own folder inside it.

Only one depth level is allowed (to maintain readability).

Add new folder for a new namespace.

Put snippet inside appropriate folder and run npm build task:

npm run build

If you don't have node installed there is a golang build tool which you can compile yourself:

# Compile executable
go build build.go

# Run without build
go run build.go

or download the appropriate one based on your operating system from project latest release page. This tool doesn't accept arguments and must be executed from project root folder (where build.js resides),

Bump version in package.json file according to SemVer.

Caution

  • Directory structure depth is fixed to one.
  • Don't use dot (.) in file and directory names.

Testing changes

First disable Shellman extension. Your compiled version if snippets is in file snippets/snippets. Copy all of contents of this file. In vscode from main mneu go to:

File -> Preferences -> User Snippets

Select shellscript.json from drop down menu. Delete all file contents and paste snippets/snippets content there and save the file.

Now you can use test,sh at project root to test your changes.