CLI for the foxhole production calculator.
This thing is a CLI tool that allows you to plan out the number of buildings required to produce a given output from a Foxhole factory. This will take a large amount of the guess work needed when trying to sort through dependency tree of all the factories.
Because I'm a bum and I suck at front end development. Leave me alone.
Below is example output for a factory that would output 100 pipes per hour, and take in components from an external source.
``` foxhole-production-calculator-cli pipe 100 -u components
{ "buildings": [ { "building": "Coal Refinery", "upgrade": "Coal Liquefier", "count": 1.3333334 }, { "building": "Materials Factory", "upgrade": "Smelter", "count": 1.3888888 }, { "building": "MetalWorks Factory", "upgrade": null, "count": 3.3333333 }, { "building": "Oil Refinery", "upgrade": "Cracking Unit", "count": 0.2962963 }, { "building": "MetalWorks Factory", "upgrade": "Blast Furnace", "count": 5.0 }, { "building": "Coal Refinery", "upgrade": "Advanced Coal Liquefier", "count": 0.64102566 } ], "power": 81.5, "build_cost": { "ConstructionMaterials": 2375, "BasicMaterials": 400, "SteelConstructionMaterials": 200, "ProcessedConstructionMaterials": 420 }, "inputs": { "Water": 2942.3076, "Components": 5500.0, "Coal": 8884.615, "Salvage": 1999.9999 } } ```
The suggested installation method is using Cargo. If you do not have cargo installed follow the instructions for your OS at rustup.rs.
After you have cargo installed run the following command:
cargo install foxhole-prodcution-calculator-cli
Below is the help output for the currently supported commands:
```
USAGE:
foxhole-production-calculator-cli [OPTIONS]
ARGS:
OPTIONS:
-h, --help Print help information
-u, --user-inputs