Brandon W Maister
05c0a0a4de
make server logging show messages in the frontend
...
now you can use the log crate and get messages in the frontend.
2024-07-31 15:35:11 -07:00
Brandon W Maister
6c10d8eece
feat: Discover docker ports as well
...
If processes are running in a container then the fwd process
can't read their internal FDs without the CAP_SYS_ADMIN property
which is equivalent to sudo. Even with sudo, I think you need to do
a lot of work to be able to read them -- spawning a process within
the cgroup, doing work there, and then communicating back.
This just uses the docker api to populate some default ports, which
later get overwritten if fwd can find a native process.
The Docker port scan takes about 1.5ms, and the full port scan takes
40+ms, so this adds basically no overhead.
2024-07-31 15:32:45 -07:00
Brandon W Maister
66da323481
feat: Show errored ports as an error state
2024-07-31 15:32:04 -07:00
6335944591
One more test
2024-07-31 15:07:27 -07:00
3b1847d882
Require a file name for 'clip', use '-' for stdin
...
This makes argument parsing more reliable: to `fwd` to a server named
`clip` just leave off the file name.
2024-07-31 15:06:20 -07:00
46bd840bc0
Another test for clip garbage
2024-07-31 14:58:11 -07:00
604f31d8e6
Fix argument parsing (whoops)
...
This whole command line thing is actually busted; probably should make
it a little bit more robust.
2024-07-31 14:56:50 -07:00
3cb40bc2f4
Clippy
2024-07-31 14:45:20 -07:00
a40a493d39
Initial implementation of clipboard forwarding
2024-06-23 08:54:41 -07:00
fb86cbd0de
Bump crate version for unreleased
2024-06-22 07:32:43 -07:00
3eba65f6e6
Refactor in prep for clip
2024-06-22 07:32:11 -07:00
3f7afc5b78
More clippy
2024-06-22 06:13:09 -07:00
08a41492b8
Clippy I guess
2024-06-21 08:26:56 -07:00
1e33561d92
Allow manual trigger of workflow dispatch
2024-04-14 06:51:26 -07:00
e11b6e025e
Maybe release for aarch64? Who can say.
2024-04-13 14:59:19 -07:00
7766feafd4
Bump the version in the crate
...
Forgot to do this on release, whoops
2024-03-01 06:15:56 -08:00
10984034fa
Supply the error message when connect fails
...
This might be too ugly
2024-02-29 13:16:16 -08:00
0368074ea0
Explicit tokio features
...
Somehow I thought this would make my binary smaller lol
2023-11-25 08:04:40 -08:00
2684d7f009
Upgrade dependencies
2023-11-25 07:58:00 -08:00
00daedeb95
Some silly refactoring
2023-11-25 07:57:52 -08:00
519b7bc415
Display the URL we're trying to open when it fails
...
This means that it is not lost forever and you can, I don't know,
click it in your terminal window or something.
(Thanks @quodlibetor for the patch!)
2023-11-25 07:33:44 -08:00
9671da9750
Make notes about the future
2023-08-28 09:25:46 -07:00
fd02779ba0
Bump version to 0.7.0
2023-04-30 07:33:55 -07:00
b85e3fa9a6
Fix crash on changing selection with no ports
...
No ports always means no selection
2023-04-30 07:33:06 -07:00
815ee5e86e
Remove explanation for what fwd does
...
You probably know already, and it feels clunky here.
2023-04-30 07:24:18 -07:00
ec130d38b9
Support running server side with sudo
...
This allows forwarding ports that you would otherwise not be able to
see. More dangerous, probably not what you want most of the time, but
OK for now.
(I continue to resist adding clap as a dependency.)
2023-04-30 06:51:37 -07:00
d3d7b4f137
Bump cargo version to v0.6.2
2023-04-26 12:01:17 -07:00
59b8b8f3dc
Cleanup some help text
2023-04-26 12:00:01 -07:00
0f8486d418
Upgrade dependencies
2023-04-26 11:53:15 -07:00
b74bf4aa9a
The release that we create should be a draft
...
A human should have to publish it.
2023-04-26 11:47:48 -07:00
7deb8489e4
Bump the cargo version
...
Whoops I forgot.
2023-04-26 11:44:21 -07:00
a3c4c3ea5e
Track the selection across refreshes by port number
...
The next step would obviously be to track the selection only by port
number, so that we remember the selection if the port goes away and
comes back.
2023-03-23 19:40:42 -07:00
99d377d4ce
Make help modal
...
I don't like that ENTER and the arrow keys still manipulate the list
while help is showing. Ignore other keypresses while the help screen
is shown.
Also, make the spelling/capitalization a little cleaner.
2023-03-21 23:17:16 -07:00
34340e2575
Simplify centering math, don't crash if the rectangle clips
...
Also, tests
2023-03-21 23:07:08 -07:00
Brandon W Maister
290dcff9b6
tui: Add a help popup
2023-03-21 22:53:35 -07:00
Brandon W Maister
381c008665
tui: Add a fwd column with a ✓ to show that ports are being forwarded
...
I didn't realize that everything was forwarded by default, this makes it more
obvious.
2023-03-21 22:53:35 -07:00
7410ec5143
Add tests for keypresses
2023-03-21 22:48:06 -07:00
f174f364a4
Re-add assertions and simplify wrapping
2023-03-21 19:45:17 -07:00
Brandon W Maister
3060032a95
ui: Wrap around list when at the endoflife
...
Pressing "up"/"k" at the top of the UI will now go to the end of the list. And
same in reverse.
2023-02-18 11:27:58 -08:00
Brandon W Maister
85dc2f0707
ui: Switch j and k keys to match vi -- j means down, k means up
2023-02-18 11:27:23 -08:00
5fb0410eee
Make README a little more clear
...
Thanks Digant!
2023-02-03 15:32:11 -08:00
Digant C Kasundra
19d6095c86
Make the README a little more clear
2023-02-03 18:21:35 -05:00
19e7baf89c
Update dependencies
...
Thanks dependabot, I guess
2023-02-03 15:18:26 -08:00
766aad15f4
Update the version number for new args
2023-01-24 09:14:31 -08:00
fc144162b9
Better command line parsing, version, usage
...
Also tests for same
2023-01-24 09:13:53 -08:00
52fe5523b2
Update version to 0.4.0 for a clean release
2023-01-20 13:34:53 -08:00
e6a9caa1b5
Remove version from release archive
...
Makes downloading easier probably?
2023-01-20 13:27:00 -08:00
505eed6ea5
More stuff; use the cross compiler and stuff
2023-01-20 13:18:51 -08:00
33adbd3e27
Whoops bad YAML
2023-01-20 13:01:41 -08:00
ad5c47456a
Version 0.3.0
2023-01-20 12:56:59 -08:00