sanjurosaves / AirBnB_clone

For AirBnB project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AirBnB clone - The console

Project Description


The projects implements the first set of concepts in the AirBnB clone web application. We are concerned with creating our data model and then managing and storing objects via a custom-built command line interpreter called "console."

Command Interpreter


Installation

git clone https://github.com/jasonmichaelhancock/AirBnB_clone.git
cd AirBnB_clone

Usage

Interactive Mode

$ ./console.py
(hbnb) help

Documented commands (type help <topic>):
========================================
EOF  all  create  destroy  help  quit  show  update

(hbnb)
(hbnb)
(hbnb) quit
$

Non-Interactive Mode

echo "help" | ./console.py
(hbnb)

Documented commands (type help <topic>):
========================================
EOF  all  create  destroy  help  quit  show  update
$

Commands

Command Syntax Summary
all all <class> displays all objects in storage, or in specified class
create create <class> creates new instance of specified Class
destroy destroy <class> <id> deletes specified instance
show show <class> <id> displays instance of specified class with all attributes
update update <class> <id> <attribute> <attribute_value> updates instance attribute
help help displays available commands
EOF EOF exits console
quit quit exits console

Authors




About

For AirBnB project


Languages

Language:Python 67.8%Language:HTML 21.1%Language:CSS 11.1%