Giter Club home page Giter Club logo

factorio-cli-mod-manger's Introduction

Factorio CLI Mod Manager

Coverage Status Build Status

Getting started

  • Install rust & cargo
  • Use rustup to download a newish nightly version (tested on nightly-2020-06-18-x86_64-pc-windows-gnu)
  • Clone this repository (git clone https://github.com/Scarjit/Factorio-CLI-Mod-manger)
  • Run it using: cargo run --release --package factorio_mod_manager --bin factorio_mod_manager -- --help

Example usage:

With CLI gui

Running `target\release\factorio_mod_manager.exe -u USERNAME -p PASSWORD -s D:\RustProjects\factorio_mod_manager\fctrserver\serverfiles install`

Creating api-token
Downloading mod list ...
Type mod to install. Insert 'q' to quit or 'i' to install selected.
flare stack
Found multiple options:
+----+-----------------+-------------+-----------+----------------------+
| ID | Name            | Title       | Downloads | Levenshtein distance |
+----+-----------------+-------------+-----------+----------------------+
| 0  | Flare Stack     | Flare Stack | 110088    | 2                    |
+----+-----------------+-------------+-----------+----------------------+
| 1  | Flare Stack 015 | Flare Stack | 1059      | 2                    |
+----+-----------------+-------------+-----------+----------------------+
| 2  | flame-tank      | Flame tank  | 1216      | 4                    |
+----+-----------------+-------------+-----------+----------------------+
Select mod to install, insert 'n' to select none
0
Installing Flare Stack
Type mod to install. Insert 'q' to quit or 'i' to install selected.
i
Dependency parsing for: 
+-------------+
| Flare Stack |
+-------------+
Parsed dependency graph:
+-----------------------+--------------------------------------------------+
| Flare Stack_2.2.6.zip | /download/Flare%20Stack/5e81d69b97ca9c000c97e815 |
+-----------------------+--------------------------------------------------+
Enter 'd' to start downloading, else aborting
d
Downloading Flare Stack_2.2.6.zip from https://mods.factorio.com//download/Flare%20Stack/5e81d69b97ca9c000c97e815?username=Scarjit&token=XXXXXXXXXXXXXXXXXXXXXXXXXX
Finished downloading Flare Stack_2.2.6.zip !
Finished downloading !

Command line only

Running `target\debug\factorio_mod_manager.exe -u USERNAME -p PASSWORD -s D:\RustProjects\factorio_mod_manager\fctrserver\serverfiles install -m bobores`
Creating api-token
Downloading mod list ...
Dependency parsing for: 
+---------+
| bobores |
+---------+
Parsed dependency graph:
+-----------------------+-----------------------------------------------+
| boblibrary_0.18.9.zip | /download/boblibrary/5e9daef69e85eb000cee2549 |
+-----------------------+-----------------------------------------------+
| bobores_0.18.3.zip    | /download/bobores/5ec96a823cf12a000b34fcb0    |
+-----------------------+-----------------------------------------------+
boblibrary_0.18.9.zip already downloaded !
bobores_0.18.3.zip already downloaded !
Finished downloading !

CLI only will not recommend other mods, if the mod is written incorrectly !

factorio-cli-mod-manger's People

Contributors

scarjit 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.