Giter Club home page Giter Club logo

Comments (5)

wouterdebie avatar wouterdebie commented on August 29, 2024

I like the idea, but what should the grouping for tabs be in case we specify -t or -T? Do the included clusters get their own tab or are all hosts just included in the list of hosts (as per your example)? Do we just want to include the hosts from the other cluster, or do we want to respect the cluster options (like login, shell, etc) from the included cluster as well?

from i2cssh.

campbsb avatar campbsb commented on August 29, 2024

If we start to consider options or tab groupings for included clusters, the complexity spirals out of control. And you would most likely only want the superset options. For example, the rows & columns specifications of a sub-cluster should not be applied to the superset!

Also, this will then give you the ability to apply different sets of settings against the same hosts by having multiple super-clusters including the same sub-cluster.

from i2cssh.

wouterdebie avatar wouterdebie commented on August 29, 2024

Exactly. So what we could do (as your PR does) is to just include the hosts of a different cluster and don't worry about the settings of the other cluster. I kind of like that idea, because that basically gives you the opportunity to connect to a group of hosts in different ways (different login, different shell, etc).

I will add a different header in the config (like include_hosts_from_cluster) or something, to make the configuration explicit, rather than having "special" hosts that are actually clusters. I'll not make this recursive for now, since the user has the opportunity to explicitly add one or more clusters.

from i2cssh.

wouterdebie avatar wouterdebie commented on August 29, 2024

I've uploaded version 0.0.11 that has the option include_from. This is only enabled as a parameter in the config file. Let me know what you think.

from i2cssh.

campbsb avatar campbsb commented on August 29, 2024

I'm happy with the include_from keyword, although I'm not personally inclined to cater for people who use the same name for a cluster as they do for a hostname!

One small fix to allow for a cluster to not have a hosts section:

382c382
<         host_strings = config["clusters"][cluster_name].get("hosts", [])
---
>         host_strings = config["clusters"][cluster_name]["hosts"]

from i2cssh.

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.