AirBnB clone - The console

hbnb

A command interpreter to manage AirBnB objects

Code Size Repo Size Total Lines

Context

ubuntu Ubuntu 20.04.3 LTS

Script Bash

Python Version 3.8.5

Vim

Pepocho

GitHub

Usage

In the interactive mode, execute the console.py file, and then the prompt line will appear

root@ubuntu:/# ./console.py
(hbnb) 

For instance, you can check the documented commands typing help in the console

(hbnb) help

Documented commands (type help <topic>):
========================================
EOF  help  quit

(hbnb)

It also works in the non-interactive mode as it's shown below

root@ubuntu:/# echo "help" | ./console.py
(hbnb) 

Documented commands (type help <topic>):
========================================
EOF  help  quit
(hbnb) 
root@ubuntu:/# 

Credits

  • Diego M. Acosta C. followers-diego Linkedin Diego
  • Santiago Negreyra followers-santi Linkedin Santi