Git Product home page Git Product logo

apizza's Introduction

apizza logo

Build Status GoDoc Go Report Card codecov TODOs

Dominos pizza from the command line.

Table of Contents

Installation

Download the precompiled binaries from Mac, Windows, and Linux (only for amd64)

wget https://github.com/harrybrwn/apizza/releases/download/v0.0.2/apizza-linux
wget https://github.com/harrybrwn/apizza/releases/download/v0.0.2/apizza-darwin
wget https://github.com/harrybrwn/apizza/releases/download/v0.0.2/apizza-windows

Or compile from source

go get -u github.com/harrybrwn/apizza
go install github.com/harrybrwn/apizza

Setup

The most you have to do as a user in terms of setting up apizza is fill in the config variables. The only config variables that are mandatory are "Address" and "Service" but the other config variables contain information that the Dominos website uses.

Note: The config file won't exist if apizza is not run at least once.

To edit the config file, you can either use the built-in config get and config set commands (see Config) to configure apizza or you can edit the $HOME/.config/apizza/config.json file. Both of these setup methods will have the same results If you add a key-value pair to the config.json file that is not already in the file it will be overwritten the next time the program is run.

Config

The config get and config set commands can be used with one config variable at a time...

apizza config set email='[email protected]'
apizza config set name='Bob'
apizza config set service='Carryout'

or they can be moved to one command like so.

apizza config set name=Bob email='[email protected]' service='Carryout'

Or just edit the json config file with

apizza config --edit

Cart

To save a new order, use apizza cart new

apizza cart new 'testorder' --product=16SCREEN --toppings=P,C,X # pepperoni, cheese, sauce

apizza cart is the command the shows all the saved orders.

The two flags --add and --remove are intended for editing an order. They will not work if no order name is given as a command. To add a product from an order, simply give apizza cart <order> --add=<product> and to remove a product give --remove=<product>.

Editing a product's toppings a little more complicated. The --product flag is the key to editing toppings. To edit a topping, give the product that the topping belogns to to the --product flag and give the actual topping name to either --remove or --add.

apizza cart myorder --product=16SCREEN --add=P

This command will add pepperoni to the pizza named 16SCREEN, and...

apizza cart myorder --product=16SCREEN --remove=P

will remove pepperoni from the 16SCREEN item in the order named 'myorder'.

Menu

Run apizza menu to print the dominos menu.

The menu command will also give more detailed information when given arguments.

The arguments can either be a product code or a category name.

apizza menu pizza      # show all the pizza
apizza menu drinks     # show all the drinks
apizza menu 10SCEXTRAV # show details on 10SCEXTRAV

To see the different menu categories, use the --show-categories flag. And to view the different toppings use the --toppings flag.

Credit: Logo was made with Logomakr.

apizza's People

Contributors

harrybrwn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.