The Code Snippet Manager is a command-line tool that allows you to manage and organize your code snippets efficiently. It enables you to store, retrieve, list, and remove code snippets with ease.
Before installing the Code Snippet Manager, ensure you have the following prerequisites:
Go Programming Language (Golang) installed on your system.
To install the Code Snippet Manager from source, follow these steps:
git clone https://github.com/mobster1425/code-snippet-manager.git
Change directory to the project folder:
cd code-snippet-manager
Build the executable:
go build
Optionally, add the executable to your system's PATH for easier access.
Download Executable (Windows and macOS) Alternatively, you can download pre-built executables for Windows and macOS , and place the executable in a directory accessible from the command line.
The Code Snippet Manager provides the following commands:
go-code-snippet-manager add "Snippet Name" "Category" "Your code snippet here"
go-code-snippet-manager get "Snippet Name" "Category"
go-code-snippet-manager list
go-code-snippet-manager remove "Snippet Name" "Category"
go-code-snippet-manager add "Hello World" "Printf" "fmt.Println(\"Hello, World!\")"
go-code-snippet-manager get "Hello World" "Printf"
go-code-snippet-manager list
go-code-snippet-manager remove "Hello World" "Printf"