liip / drifter

Drifter is a framework to help provision developer boxes using Ansible and Vagrant
https://liip-drifter.readthedocs.io/
Do What The F*ck You Want To Public License
57 stars 28 forks source link

Create CLI tool #156

Open sephii opened 7 years ago

sephii commented 7 years ago

Having a drifter CLI tool would simplify the management of Drifter projects. It could for example:

jeanmonod commented 7 years ago

👍 And alternatively it will enforce your bash skills @sephii

devste commented 7 years ago

Because I already had the need to run an update once, I hacked an update script together (https://github.com/devste/drifter/commit/c38038127592f523c8d4159aa47f40d1babb079a).

I saw this issue here later and now took the time to create a basic skeleton for a CLI tool (in bash). I just integrated my update script into the structure. Install.sh isn't integrated into the structure. One reason: even if there is a better CLI for the installation, there should probably still be a minimal "bootstrapping" script that gets the drifter CLI into the project directory of a new project.

Could be a workflow such as:

  1. cd new_project_dir
  2. curl -sS https://url.to/bootstrap.sh | /bin/bash
  3. ./drifter init

This feature is work in progress, so nowhere close to what I perceive as "pull request" quality yet. That's why I'm leaving a comment here and the link to the specific branch: https://github.com/devste/drifter/tree/feature-drifter-cli

sephii commented 6 years ago

Thanks @devste. Here are a few questions: