A CLI app that can operate simple create, read, update and delete JSON data.
- Clone this project locally
- Run
go build
- Enjoy!
The following will explain how to run the program
go run biodata-cli get -all
result:
Id Name Address Reason
---- ----------------- ------------------------------ ---------------------------------------------------------------------
1 Skyler Kaufman 780-5712 Feugiat Rd. In ornare sagittis felis. Donec tempor, est ac mattis semper,
2 Axel Lambert P.O. Box 145, 4244 Morbi Ave Sed id risus quis diam luctus lobortis. Class aptent taciti
3 Janna Avery 140-1888 Eu Av. pharetra. Nam ac nulla. In tincidunt congue turpis. In condimentum.
4 Maxwell Beasley 297-4652 Lobortis Street Nulla semper tellus id nunc interdum feugiat. Sed nec metus
5 Chastity Hyde Ap #393-6549 Aliquet Ave dictum placerat, augue. Sed molestie. Sed id risus quis diam
go run biodata-cli get -id="3"
result:
Id Name Address Reason
---- ------------- ----------------- ---------------------------------------------------------------------
3 Janna Avery 140-1888 Eu Av. pharetra. Nam ac nulla. In tincidunt congue turpis. In condimentum.
go run biodata-cli add -name="husfuu" -address="isekai world" -reason="wannabe anime main character"
result:
Id Name Address Reason
---- ----------------- ------------------------------ ---------------------------------------------------------------------
1 Skyler Kaufman 780-5712 Feugiat Rd. In ornare sagittis felis. Donec tempor, est ac mattis semper,
2 Axel Lambert P.O. Box 145, 4244 Morbi Ave Sed id risus quis diam luctus lobortis. Class aptent taciti
3 Janna Avery 140-1888 Eu Av. pharetra. Nam ac nulla. In tincidunt congue turpis. In condimentum.
4 Maxwell Beasley 297-4652 Lobortis Street Nulla semper tellus id nunc interdum feugiat. Sed nec metus
5 Chastity Hyde Ap #393-6549 Aliquet Ave dictum placerat, augue. Sed molestie. Sed id risus quis diam
6 husfuu isekai world wannabe anime main character
go run biodata-cli edit -id="5"
go run biodata-cli delete -id="5"