Coder Social home page Coder Social logo

Abilitiy to add arbitrary options about storm HOT 5 CLOSED

emre avatar emre commented on July 30, 2024
Abilitiy to add arbitrary options

from storm.

Comments (5)

emre avatar emre commented on July 30, 2024

That's a great idea. I will implement this with #19 probably next weekend. I just need free time to do it.

from storm.

emre avatar emre commented on July 30, 2024

cli library that storm uses is manage.py which does not support multiple values for a single argument.

I think about implementing this with a slight change on the usage example you suggested.

storm add vps [email protected] -o "configOption=yes anotherConfigOption:1"

from storm.

keyneston avatar keyneston commented on July 30, 2024

The reason I suggested that particular syntax is because it mirrors the syntax for passing the values to scp/ssh themselves.

At the same time I understand the limitations in implementing it and in that context your suggestion path makes a lot of sense.

Granted I'd be very careful about what you use as a separator. For example SendEnv allows multiple environment variables to specified by separating the variables with white space.

from storm.

emre avatar emre commented on July 30, 2024

I decided to remove manage.py and use good, old argparse module for the new versions. It limits so much that brings more difficulty than I expected.

from storm.

emre avatar emre commented on July 30, 2024

It's up.

$ storm add web-prod [email protected] --o "StrictHostKeyChecking=no" --o "UserKnownHostsFile=/dev/null" --o "IdentityFile=/home/bob/.ssh/dev_id_rsa"
success  web-prod added to your ssh config. you can connect it by typing "ssh web-prod".

$ storm search web-prod
Listing results for web-prod:
    web-prod -> [email protected]:22

You can try it after a "pip install stormssh --upgrade"

from storm.

Related Issues (20)

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.