go-http-tunnel
go-http-tunnel copied to clipboard
Cli more powerful
Hello!
I love this tool but I don't like that much how the CLI interact with the daemon, I was using ngrok and its CLI is a bit more powerful.
I would like to propose some improvement that I would like to implement or maybe they are already there and I am not able to find them:
- We should set up a configuration file for the CLI with a default location like
~/.tunnelctl/somethingto configure the tunneld target with client keys and so on. We can probably implement something like the profiles for the aws-cli - When we have that I would like to be able to start a tunnel via cli like `tunnel start --subdomain my 8080 (This will start my*.what.you.have* and it will forward port 8080)
- If you don't specify a subdomain we can start a random one
I think this will cover a bit better some use cases, for example, I would like to use it during integration testing and the configuration file based interaction is not very comfortable.
Let me know
Hi @gianarb
I love this tool but I don't like that much how the CLI interact with the daemon, I was using ngrok and its CLI is a bit more powerful.
Thanks, I'm happy to hear that.
I would like to propose some improvement that I would like to implement or maybe they are already there and I am not able to find them:
I believe that the default config file location should be there.
As for your proposal I'm in favor of of adding --subdomain, but it should be optional. The existing commands must remain functional. If you don't specify a subdomain then business as usual. Also user shall be warned when using this flag with tunnel name.
As for me I have a backlog of things I'd like to do with this project, CLI is one of them. My idea was to:
- ship a single binary (
tunnel serverwould start the server rest stays more or less the same) - use cobra (better help, bash completion)
@mmatczuk I 100% with you about about keeping the compatibility with what you have. It should now be hard and worst case scenario we can always to a different command like tunnel run .
Ok I am happy to read that you have the CLI in your todo list. I will try to code something soon