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

https://github.com/p3yman/aha

💡 A simple CLI tool to save your awesome aha moments right where you live!
https://github.com/p3yman/aha

cli idea javascript terminal

Last synced: about 1 year ago
JSON representation

💡 A simple CLI tool to save your awesome aha moments right where you live!

Awesome Lists containing this project

README

          

# 💡 Aha!

`aha` is a simple CLI tool to save your awesome aha moments right where you live!

![carbon](https://user-images.githubusercontent.com/2673262/94447107-1e5ab680-01b2-11eb-846d-3a1f95b80aee.png)

## Installation
You can install it globaly from npm:
```shell
$ npm install --global aha-moment
```
Now it's available using `aha` command.

## Usage
You have a small CRUD actions with this tool.

---

### Add
Using add you can create new aha moment in the local database.

You can use this quick create way:
```bash
$ aha add "What a great idea!"
```

Or you can just run `aha add` and create a new aha moment by answering some questions. Just enter a title and select a status and you are good to go.

![Screen Shot 2020-09-28 at 17 04 39](https://user-images.githubusercontent.com/2673262/94443120-7a6f0c00-01ad-11eb-8acb-068e1a967249.png)

### List
To see a list of saved moments, use `aha list` command.

![Screen Shot 2020-09-28 at 17 17 48](https://user-images.githubusercontent.com/2673262/94444023-8b6c4d00-01ae-11eb-8d3a-606e9b288442.png)

### Show
You can see the details of an aha moment using `aha show` command:
```bash
$ aha show 17
```

Which `17` is the moment's ID.

![Screen Shot 2020-09-28 at 17 49 27](https://user-images.githubusercontent.com/2673262/94447992-19e2cd80-01b3-11eb-9245-d8d5eea65ac2.png)

### Remove
To remove an aha moment, use `aha remove` command.

You can do it in a quick way:
```bash
$ aha remove 24
```

Which `24` is the moment's ID.

Or you can just run `aha remove` and choose from available moments.

![Screen Shot 2020-09-28 at 17 23 10](https://user-images.githubusercontent.com/2673262/94444719-4a286d00-01af-11eb-9196-6335e2e08acf.png)

In both ways, you should confirm the delete action. Default is no.

### Edit
You can edit each moment. Just run the `aha edit`. Select the right moment and update it.

![Screen Shot 2020-09-28 at 17 30 09](https://user-images.githubusercontent.com/2673262/94445575-43e6c080-01b0-11eb-92d1-a8e2faa6084f.png)

If you know the ID you can make the process faster:
```bash
$ aha edit 24
```
Then you can change the title and the status.

### Clear
To clear all the saved moments you can use `aha clear`. Be careful that this command is not undoable. Just run the command, confirm deleting and it's done.

![Screen Shot 2020-09-28 at 17 32 11](https://user-images.githubusercontent.com/2673262/94445798-8d371000-01b0-11eb-9b1d-b48b8af2f07d.png)

---

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

## License

[MIT License](https://mit-license.org/) © [Peyman Eskandari](https://github.com/p3yman/)

## TODO
- [x] list
- [x] add
- [x] show
- [x] remove
- [x] clear
- [x] edit
- [ ] add-note
- [ ] remove-note
- [ ] clear-notes
- [ ] export
- [ ] import