{"id":13582100,"url":"https://github.com/harrybrwn/apizza","last_synced_at":"2025-06-29T04:33:50.737Z","repository":{"id":144203491,"uuid":"166515398","full_name":"harrybrwn/apizza","owner":"harrybrwn","description":"Order Dominos pizza from the command line","archived":false,"fork":false,"pushed_at":"2022-04-19T00:08:51.000Z","size":869,"stargazers_count":308,"open_issues_count":3,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T11:49:02.235Z","etag":null,"topics":["cli","go","pizza"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harrybrwn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-19T06:42:25.000Z","updated_at":"2025-03-15T18:13:34.000Z","dependencies_parsed_at":"2023-06-19T01:11:21.283Z","dependency_job_id":null,"html_url":"https://github.com/harrybrwn/apizza","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrybrwn%2Fapizza","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrybrwn%2Fapizza/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrybrwn%2Fapizza/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harrybrwn%2Fapizza/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harrybrwn","download_url":"https://codeload.github.com/harrybrwn/apizza/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075184,"owners_count":21043539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","pizza"],"created_at":"2024-08-01T15:02:25.662Z","updated_at":"2025-04-09T17:22:14.077Z","avatar_url":"https://github.com/harrybrwn.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"![apizza logo](/docs/logo.png)\n\n[![Build Status](https://travis-ci.com/harrybrwn/apizza.svg?branch=master)](https://travis-ci.com/harrybrwn/apizza)\n[![GoDoc](https://godoc.org/github.com/github.com/harrybrwn/apizza/dawg?status.svg)](https://pkg.go.dev/github.com/harrybrwn/apizza/dawg?tab=doc)\n[![Go Report Card](https://goreportcard.com/badge/github.com/harrybrwn/apizza)](https://goreportcard.com/report/github.com/harrybrwn/apizza)\n[![codecov](https://codecov.io/gh/harrybrwn/apizza/branch/master/graph/badge.svg)](https://codecov.io/gh/harrybrwn/apizza)\n[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/harrybrwn/apizza)](https://www.tickgit.com/browse?repo=github.com/harrybrwn/apizza)\n\nDominos pizza from the command line.\n\n## Table of Contents\n- [Installation](#installation)\n- [Setup](#setup)\n- [Commands](#commands)\n\t- [Config](#config)\n\t- [Menu](#menu)\n\t- [Cart](#cart)\n\t- [Order](#order)\n- [Tutorials](#tutorials)\n\t- [None Pizza with Left Beef](#none-pizza-with-left-beef)\n\n## Installation\nDownload the precompiled binaries for Mac, Windows, and Linux\n\n##### Homebrew\n```\nbrew install harrybrwn/tap/apizza\n```\n##### Debian/Ubuntu\n```\ncurl -LO https://github.com/harrybrwn/apizza/releases/download/v0.0.3/apizza_0.0.3_Linux_64-bit.deb\nsudo dpkg -i apizza_0.0.3_Linux_64-bit.deb\n```\n##### Rpm\n```\ncurl -LO https://github.com/harrybrwn/apizza/releases/download/v0.0.3/apizza_0.0.3_Linux_64-bit.rpm\nsudo rpm -i apizza_0.0.3_Linux_64-bit.rpm\n```\n##### Archives\n- \u003ca href=\"https://github.com/harrybrwn/apizza/releases/download/v0.0.3/apizza_0.0.3_MacOS_64-bit.tar.gz\" download\u003eMacOS\u003c/a\u003e\u003cbr\u003e\n- \u003ca href=\"https://github.com/harrybrwn/apizza/releases/download/v0.0.3/apizza_0.0.3_Linux_64-bit.tar.gz\" download\u003eLinux\u003c/a\u003e\n- Windows\n    - \u003ca href=\"https://github.com/harrybrwn/apizza/releases/download/v0.0.3/apizza_0.0.3_Windows_64-bit.zip\" download\u003e64 bit\u003c/a\u003e\n    - \u003ca href=\"https://github.com/harrybrwn/apizza/releases/download/v0.0.3/apizza_0.0.3_Windows_32-bit.zip\" download\u003e32 bit\u003c/a\u003e\n\n#### Compile\n```bash\ngo get -u github.com/harrybrwn/apizza\n```\nor\n```bash\ngit clone https://github.com/harrybrwn/apizza\ncd apizza\nmake install\n```\n\n## Setup\nThe 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.\n\nTo edit the config file, you can either use the built-in `config get` and `config set` commands (see [Config](#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.\n\n\n## Config\nFor documentation on configuration and configuration fields, see [documentation](/docs/configuration.md)\n\nThe `config get` and `config set` commands can be used with one config variable at a time...\n```sh\n$ apizza config set email='bob@example.com'\n$ apizza config set name='Bob'\n$ apizza config set service='Carryout'\n```\n\nOr they can be moved to one command like so.\n```bash\n$ apizza config set name=Bob email='bob@example.com' service='Carryout'\n```\n\nOr just edit the json config file with\n```bash\n$ apizza config --edit\n```\n\n\n## Menu\nRun `apizza menu` to print the dominos menu.\n\nThe menu command will also give more detailed information when given arguments.\n\nThe arguments can either be a product code or a category name.\n```bash\n$ apizza menu pizza      # show all the pizza\n$ apizza menu drinks     # show all the drinks\n$ apizza menu 10SCEXTRAV # show details on 10SCEXTRAV\n```\nTo see the different menu categories, use the `--show-categories` flag. And to view the different toppings use the `--toppings` flag.\n\n\n## Cart\nTo save a new order, use `apizza cart new`\n```bash\n$ apizza cart new 'testorder' --product=16SCREEN --toppings=P,C,X # pepperoni, cheese, sauce\n```\n`apizza cart` is the command the shows all the saved orders.\n\n\u003e Note: Adding and removing items from the cart is a little bit weird and it will probably change in the future.\n\nThe 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 \u003corder\u003e --add=\u003cproduct\u003e` and to remove a product give `--remove=\u003cproduct\u003e`.\n\nEditing 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 belongs to to the `--product` flag and give the actual topping name to either `--remove` or `--add`.\n\n```bash\n$ apizza cart myorder --product=16SCREEN --add=P\n```\nThis command will add pepperoni to the pizza named 16SCREEN, and...\n```bash\n$ apizza cart myorder --product=16SCREEN --remove=P\n```\nwill remove pepperoni from the 16SCREEN item in the order named 'myorder'.\n\nTo customize toppings use the syntax `\u003cname\u003e:\u003cleft|right|full\u003e:\u003c0.5|1.0|1.5|2.0\u003e` when adding a topping.\n```sh\n$ apizza cart myorder --product=12SCREEN --add=P:full:2 # double pepperoni\n```\n\n\n## Order\nTo actually send an order from the cart. Use the `order` command.\n\n```bash\n$ apizza order myorder --cvv=000\n```\nOnce the command is executed, it will prompt you asking if you are sure you want to send the order. Enter `y` and the order will be sent.\n\n## Tutorials\n\n#### None Pizza with Left Beef\n```bash\n$ apizza cart new --name=leftbeef --product=12SCREEN\n$ apizza cart leftbeef --remove=C --product=12SCREEN # remove cheese\n$ apizza cart leftbeef --remove=X --product=12SCREEN # remove sauce\n$ apizza cart leftbeef --add=B:left --product=12SCREEN # add beef to the left\n```\n\n\n### The [Dominos API Wrapper for Go](/docs/dawg.md)\nDocs and example code for my Dominos library.\n\n\u003e **Credit**: Logo was made with [Logomakr](https://logomakr.com/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharrybrwn%2Fapizza","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharrybrwn%2Fapizza","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharrybrwn%2Fapizza/lists"}