nt icon indicating copy to clipboard operation
nt copied to clipboard

Make command args more like github

Open cyberail opened this issue 2 years ago • 10 comments

as the command line interface of this is going to be used by developers mostly, it will be a good idea to make command line arguments more like GitHub:

  • notya add [notename]
  • notya -d, --delete [note Id or anything that identifies the note]
  • notya push
  • notya restore

cyberail avatar Dec 28 '22 19:12 cyberail

Cool suggestions from my uncle ❤️

theiskaa avatar Dec 28 '22 20:12 theiskaa

We already have, remove/rm, command which is made to be like the UNIX command rm. As well as we have name changing, or I should say path changing command (i.e moving) same as UNIX's mv.

We also have, push and pull commands. Which is feels like git but with better interactions.

See:

  • https://github.com/insolite-dev/notya/wiki/Remove
  • https://github.com/insolite-dev/notya/wiki/Rename

And for more: https://github.com/insolite-dev/notya/wiki

theiskaa avatar Dec 28 '22 20:12 theiskaa

Saw them, yes I will remove push, -d and rm are equivalently famous so it does not matter too.

I think you should have notya config to set configuration parameters with one command. Like: notya config editor.default=/bin/code

And to edit configs with a text editor you should have the: notya config --edit

Both of those commands are exact replicas of the git configuration.

image

cyberail avatar Dec 28 '22 20:12 cyberail

I don't think you need --global arg currently

cyberail avatar Dec 28 '22 20:12 cyberail

Also create the word itself is more likely to be associated with large processes. add is a better name as it represents simpler action and the creation of notes should be a very simple process.

cyberail avatar Dec 28 '22 20:12 cyberail

Yep, mv is better, you can use rn too.

On UNIX, mv also supports moving files from one directory to another.

cyberail avatar Dec 28 '22 20:12 cyberail

Yep, mv is better, you can use rn too.

On UNIX, mv also supports moving files from one directory to another.

Our mv does exactly same thing as UNIX's mv. Even in firebase remote connection

theiskaa avatar Dec 28 '22 20:12 theiskaa

@campfire5 we have kinda config command, see documentation here: Actually it is called settings but I'm not wrong, it has a alias called config. So you can use it in both ways, as notya config and notya settings.

  • https://github.com/insolite-dev/notya/wiki/Settings
  • https://github.com/insolite-dev/notya/wiki/Remote

theiskaa avatar Dec 28 '22 20:12 theiskaa

@campfire5 we have kinda config command, see documentation here: Actually it is called settings but I'm not wrong, it has a alias called config. So you can use it in both ways, as notya config and notya settings.

  • https://github.com/insolite-dev/notya/wiki/Settings
  • https://github.com/insolite-dev/notya/wiki/Remote

I know that command, I think config is beeter name in terms of developer-familarity and also ability to set single config like editor.default by running one command is better idea.

cyberail avatar Dec 28 '22 20:12 cyberail

Definitely, thanks for your suggestions man ❤️

theiskaa avatar Dec 28 '22 20:12 theiskaa