-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search by port #19
Comments
I like the idea. How do you imagine it would work? What would it look like? |
Thanks ;-) It might be something like you run fkill-cli and next to the Running processes there'd be in brackets by what you're searching and you can switch it by a shortcut.
|
I see two options Flags
Automatic parsingJust run |
I think automatic parsing would be nicer, but one downside (?) is that you would miss the ability browse through ports. Not sure that's something people would need though. |
What do you mean with browse through ports? |
@SamVerschueren I mean, if you just want to see what apps are using which ports. |
You could use automatic parsing for finding and killing (when you know the port number connected to the proc you want to kill) and then also have a 'ports' subcommand, maybe?
Sidenote; https://www.npmjs.com/package/node-netstat may be good for this. |
Careful, people will assume the first arg to You can find all port-> process mappings with |
@sindresorhus, @pirate how do you feel about:
using a |
I'd rather a flag than a subcommand, as the word |
yep, that makes sense -
|
👍 for your second example, I think only allowing |
do you mean |
Up to you, I personally favor stricter argument parsing, but it's your call @sindresorhus & @coffeedoughnuts ;) |
The argument parser we use supports both, but we should only document |
I'm ok with a |
how about searching by port after user typed colon |
I like it.
On Tue, Apr 4, 2017 at 2:35 PM Yury ***@***.***> wrote:
how about searching by port after user typed colon : ?
$ fkill
*user types*:
:8080
*shows list of apps on 8080*
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAfOCwhpjLZx6_QDQKhJqNEp5IdJUHF0ks5rso1WgaJpZM4MThKz>
.
--
--From Nick (Mobile)
|
Yeah, I would be fine with that too. I assume it would be:
And
Is everyone good with this? // @SamVerschueren @coffeedoughnuts @MarkTiedemann @alextes |
LGTM. |
Yep, :PORT seems good to me; |
Cool. Let's go with that then. Pull request welcome :) |
Marking as "help wanted" again. See #27 for previous attempt. |
It'd be great if it's possible to also search by a port being open by a process
The text was updated successfully, but these errors were encountered: