https://github.com/benoitvallon/phonebook-cli
Command line tool that manages phone books
https://github.com/benoitvallon/phonebook-cli
Last synced: 6 months ago
JSON representation
Command line tool that manages phone books
- Host: GitHub
- URL: https://github.com/benoitvallon/phonebook-cli
- Owner: benoitvallon
- Created: 2015-08-28T18:25:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-06T20:03:25.000Z (almost 10 years ago)
- Last Synced: 2025-02-13T19:19:19.837Z (8 months ago)
- Language: Python
- Size: 137 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Command line tool that manages phone books
# Interface
Create the phone book hsphonebook.pb in the current directory.
```shell
$ phonebook create hsphonebook.pb
```
or```shell
$ python phonebook.py create hsphonebook.pb
```Look for a person in a phone book.
```shell
$ phonebook lookup Sarah hsphonebook.pb # error message on no such phonebook
Sarah Ahmed 432 123 4321
Sarah Apple 509 123 4567
Sarah Orange 123 456 7890
```Add a person in a phone book.
```shell
$ phonebook add 'John Michael' '123 456 4323' hsphonebook.pb # error message on duplicate name
```Edit a person in a phone book.
```shell
$ phonebook change 'John Michael' '234 521 2332' hsphonebook.pb # error message on not exist
```Remove a person from a phone book.
```shell
$ phonebook remove 'John Michael' hsphonebook.pb # error message on not exist
```Look for a phone number in a phone book.
```shell
$ phonebook reverse-lookup '312 432 5432' hsphonebook.pb
```