Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sambasivareddy-ch/notebook_cli

Notebook CLI App build using Go lang, Cobra, Prompt UI
https://github.com/sambasivareddy-ch/notebook_cli

cli cli-app cobra golang promptui

Last synced: about 2 months ago
JSON representation

Notebook CLI App build using Go lang, Cobra, Prompt UI

Awesome Lists containing this project

README

        

**NoteBook CLI in Go**

Repository: https://github.com/sambasivareddy-ch/notebook_cli

Build: To build the app use
go build .
This will create a build file/executable file notebook_cli

***Command***
- InitTable to initialize the notebook table
- completion Generate the autocompletion script for the specified shell
- create To create new notes
- delete To delete a notes based on title
- help Help about any command
- modify Modifies the notes based on title
- view Displays all the notes existed

***Usage***
- ./notebook_cli -> Will creates a database called sqlite-database.db (mandatory step-1)
- ./notebook_cli InitTable -> Will creates a NoteBooks table in sqlite-database.db file (mandatory step-2)
- ./notebook_cli view -> Gives all the notes in the table
- ./notebook_cli create -> gives the prompt to enter the title & notes. Once entered a new notes will be created
- ./notebook_cli delete -> gives the prompt to select the title and deletes a notes from the table based on that select title
- ./notebook_cli modify -> gives the prompt to select the title and a prompt to enter new notes & update the table
- ./notebook_cli --help -> List out all the available command