naming custom shell command

prolink007

New Member
Joined
May 22, 2019
Messages
3
Reaction score
0
Credits
0
I have a custom shell that i am implementing. I am trying to keep the commands for that shell close to what people are used to for a normal linux shell. I am having a hard time finding any naming convention style guide, so i am seeking assistance here.

I want to list all the toys associated with this running instance of the shell. What would be a good command name for that? My initial thought is the command would be called `lstoys` which means, list all toys. However, i really want to know what the common practice is for this type of thing.
 


jwrenx

New Member
Joined
May 22, 2019
Messages
8
Reaction score
0
Credits
0
I don't think there is an explict "name your tool like this" guide. POSIX and GNU both offer basic standardization guides.

As always, I would give components meaningful names.

If by "toys" you mean utilities, you can often hit tab twice and then confirm with a 'y' or 'n' to display all available commands. Alternatively, you could make a help or list-utils command.
 
OP
P

prolink007

New Member
Joined
May 22, 2019
Messages
3
Reaction score
0
Credits
0
I don't think there is an explict "name your tool like this" guide. POSIX and GNU both offer basic standardization guides.

As always, I would give components meaningful names.

If by "toys" you mean utilities, you can often hit tab twice and then confirm with a 'y' or 'n' to display all available commands. Alternatively, you could make a help or list-utils command.
I mean from a usability stand point. What would be a good command name for `listing toys`? `lstoys', `ls-toys`, `ls toys`, `list-toys`, `list toys`...etc
 

jwrenx

New Member
Joined
May 22, 2019
Messages
8
Reaction score
0
Credits
0
I mean from a usability stand point. What would be a good command name for `listing toys`? `lstoys', `ls-toys`, `ls toys`, `list-toys`, `list toys`...etc

I don't think any of them quite articulate what the command actually lists... Most commands would be similar to lstoys. You should never put a space in a utility/commands name.
 
OP
P

prolink007

New Member
Joined
May 22, 2019
Messages
3
Reaction score
0
Credits
0
I don't think any of them quite articulate what the command actually lists... Most commands would be similar to lstoys. You should never put a space in a utility/commands name.
Why do you think that `lstoys` does not articulate what the command lists?
 

TechnoJunky

Well-Known Member
Joined
Dec 3, 2018
Messages
501
Reaction score
399
Credits
398
Is this a command that you're thinking of submitting to the Linux Foundation for adding to all GNU/Linux distros or just something for your own computer? If it's just your own computer, then name it whatever you want. If it's for a larger audience, then make sure describes what it does. I'd assume lstoys lists some sort of collection of toys. If so, then I'm sure that's good enough.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com


Top