NLnetLabs / dnsi

A tool to investigate the DNS.
BSD 3-Clause "New" or "Revised" License
43 stars 4 forks source link

Add command shortcuts #34

Open AccessViolation95 opened 1 week ago

AccessViolation95 commented 1 week ago

I think it would be nice if the query and lookup commands had the respective shorthands q and l. Similarly to how you can type cargo c instead of cargo check for example.

partim commented 1 week ago

That’s indeed something that would be nice to have. Thank you for the suggestion!

We were also thinking to add a facility so that dnsi checks what it was called at and if it is, e.g., dq, it runs the query command. Then you can just symlink it to dq if you want to – we can add that by default in our binary packages as well.

AccessViolation95 commented 1 week ago

That's an interesting idea. I wonder, would this be compatible with the cargo install installation method? I'm not sure, but if not, it would be nice to also have the subcommand shorthands to make up for the lack of dq and dl in that case

partim commented 1 week ago

I don’ t think cargo install can make symlinks.

We would indeed provide both.