Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create CLI tool #156

Open
sephii opened this issue Feb 2, 2017 · 3 comments
Open

Create CLI tool #156

sephii opened this issue Feb 2, 2017 · 3 comments

Comments

@sephii
Copy link

sephii commented Feb 2, 2017

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

  • Install Drifter on a project by using drifter install instead of a curl | sh, and have an interactive process to set which box to use, and enable initial roles and set parameters
  • Get the currently installed Drifter version on a project
  • Upgrade Drifter on a project
  • Any other idea?
@jeanmonod
Copy link
Member

👍 And alternatively it will enforce your bash skills @sephii

@devste
Copy link
Contributor

devste commented Jul 26, 2017

Because I already had the need to run an update once, I hacked an update script together (devste@c380381).

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
Copy link
Author

sephii commented Feb 24, 2018

Thanks @devste. Here are a few questions:

  • Is bash scripting supported on Windows, and, if so, to what extent? I think in its current state Drifter is working on Windows (at least for existing projects, I guess the install script doesn't work), and we should try to keep it that way
  • Why do you see the install process separated from the other commands (eg. upgrading an existing project and showing the current drifter version)? Couldn't the drifter init command take care of installing Drifter in the project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants