varlink / go

Golang implementation of the Varlink protocol
https://godoc.org/github.com/varlink/go/varlink
Apache License 2.0
55 stars 57 forks source link

Allow setting the bridge with an env var #3

Closed afbjorklund closed 5 years ago

afbjorklund commented 5 years ago

Gets tedious to always use: -bridge "$VARLINK_BRIDGE"

Better if it can be given as an environment variable.

afbjorklund commented 5 years ago

Same request as https://github.com/varlink/libvarlink/pull/10

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 315


Totals Coverage Status
Change from base Build 314: 0.0%
Covered Lines: 571
Relevant Lines: 691

💛 - Coveralls
haraldh commented 5 years ago

Why? You can always set a shell alias or something?

The varlink cli command is a debugging tool. Why are you using it that often?

afbjorklund commented 5 years ago

Using it for debugging podman, while the new remote client is being worked out...

There's a script, that returns the current configuration as an environment variable.

afbjorklund commented 5 years ago

Like so: https://github.com/boot2podman/machine#connecting

The Go version was much easier to build than the C version (mainly because I wanted to build 3 cross-platform versions...)

Ultimately podman is going to provide a client, using the library