This project is a simple command-line tool to manage notes with features like adding, showing, and deleting notes. It uses SQLite as the database and is written in Go.
- Add Notes: Add notes to the database.
- Show Notes: View all saved notes.
- Delete Notes: Remove a specific note by its ID.
- Visit our site to download the zip file
git clone https://github.com/gaurav1952/notes
cd notes- Install dependencies:
go mod tidy- Build the project: (according to your machine OS)
#example for windows
go build -o notes.exe To add the notes build file (i.e., notes.exe for Windows or notes for macOS/Linux) to your system's environment path, follow these instructions for each platform:
Adding notes.exe to PATH:
- Move the notes.exe file to a permanent location (e.g., C:\tools\notes):
- Create a folder for your tools, e.g., C:\tools\notes
- Move the notes.exe file there.
- Add the folder to the system PATH:
- Open the Start Menu and search for Environment Variables.
- Select Edit the system environment variables.
- In the System Properties window, click the Environment Variables button.
- In the Environment Variables window, under System variables, select Path and click Edit.
- Click New and add the path to the folder where notes.exe is located (e.g., C:\tools\notes).
- Click OK to close all windows.
- Test the PATH:
- Open Command Prompt and run:
notes.exe help- If the command runs successfully, the notes.exe file is now accessible from any directory.
Run this command in PowerShell
$pathToAdd = "C:\path\to\your\notes.exe"
$env:Path += ";$pathToAdd"
[Environment]::SetEnvironmentVariable("Path", $env:Path, [EnvironmentVariableTarget]::User)- Replace C:\path\to\your\notes.exe with the actual path where notes.exe is located (e.g., C:\tools\notes).
- Open PowerShell as an administrator.
- Run the command above.
To verify that the path has been added, you can check the Path variable:
This command updates the Path for the current user. If you want to set it for the system (for all users), replace [EnvironmentVariableTarget]::User with [EnvironmentVariableTarget]::Machine in the last line, but note that you need administrative privileges to do this.
Adding notes to PATH:
- Move the notes binary to a permanent location (e.g., /usr/local/bin):
sudo mv notes /usr/local/bin/notes- Make the file executable:
sudo chmod +x /usr/local/bin/notes3.Test the PATH: Open a terminal and run:
notes helpIf the command runs successfully, the notes binary is now accessible from any directory.
Ensure /usr/local/bin is included in your PATH. You can check this with:
echo $PATHAdding notes to PATH:
- Move the notes binary to a location included in your PATH (e.g., /usr/local/bin):
sudo mv notes /usr/local/bin/notes- Make the file executable:
sudo chmod +x /usr/local/bin/notes- Test the PATH: Open a terminal and run:
notes helpIf the command runs successfully, the notes binary is now accessible from any directory.
Ensure /usr/local/bin is included in your PATH. You can check this with:
echo $PATH