Code Monkey home page Code Monkey logo

Comments (6)

petems avatar petems commented on June 12, 2024 1

@psobot Also liked this issue, are you interested in trying this?

I've just merged this into master, any problems feel free to open a new issue or PR 👍

from tugboat.

petems avatar petems commented on June 12, 2024

Makes sense.

Hmm, this would probably be easiest by extending the porcelain mode from the info method into the droplets method.

$ tugboat info -n foo-node --porcelain --attribute=ip4
10.0.1.1

How would you like it to look when it outputs, something like this:

$ tugboat droplets --porcelain --attribute=ip4
foo-node, 10.0.1.1

from tugboat.

petems avatar petems commented on June 12, 2024

@adamierymenko Can you give an example of how you want it to look?

Do you want a CSV style output like we do for info and --porcelain mode:

$ tugboat droplets --porcelain --attribute=ip4
foo-node, 10.0.1.1
foo-node2, 10.0.1.2

from tugboat.

adamierymenko avatar adamierymenko commented on June 12, 2024

CSV would be fine, and ditch the extra spaces since it requires an extra 'cut' or 'sed' etc. from the command line. Goal is to make it easy to script stuff.

from tugboat.

petems avatar petems commented on June 12, 2024

Could also do an output format flag: csv, yaml or JSON 👍

from tugboat.

petems avatar petems commented on June 12, 2024

@adamierymenko Are you still using tugboat? Bit late now (2 years!) but I finally got this working now:

$ tugboat droplets --attribute=ip4
test-blog-1,41.101.11.22
test-blog-2,138.68.11.22

Got it up as a PR here: #294

from tugboat.

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.