The AirBnB Console allows us to manage the objects of the web app.
- Create) - create BaseModel - Creates a new instance of BaseModel (ex: User or Place)
- Show - show BaseModel / show BaseModel My_First_Model - If the ID is missing or instance not found it's going to show the message.
- Destroy - destroy BaseModel - Deletes an instance based on the class and id
- All - all BaseModel - Prints all objects based or not on the class name as a list of strings
- Update - update BaseModel - Updates an object based on the class name and id (id, created_at, updated_at can't be updated
$ ./console.py
(hbnb) help
Documented commands (type help <topic>):
========================================
EOF help quit
(hbnb)
(hbnb)
(hbnb) quit
$
- EOF - EOF - exit the program
- quit - quit - exit the program
- help - help/help quit/help EOF - help exiting the program
- Empty line - N/A - an empty line + ENTER shouldn't execute anything
- Custom Prompt - (hbnb) - N/A
- Language: C, PYTHON , SHELL , HTML, CSS
- OS: Ubuntu 20.04 LTS
GitHub|iVGeek