Skip to content
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

Make command args more like github #94

Open
cyberail opened this issue Dec 28, 2022 · 10 comments
Open

Make command args more like github #94

cyberail opened this issue Dec 28, 2022 · 10 comments

Comments

@cyberail
Copy link

cyberail commented Dec 28, 2022

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
@theiskaa
Copy link
Member

Cool suggestions from my uncle ❤️

@theiskaa
Copy link
Member

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:

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

@cyberail
Copy link
Author

cyberail commented Dec 28, 2022

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
Copy link
Author

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

@cyberail
Copy link
Author

cyberail commented Dec 28, 2022

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
Copy link
Author

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

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

@theiskaa
Copy link
Member

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
Copy link
Member

@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.

@cyberail
Copy link
Author

@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.

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.

@theiskaa
Copy link
Member

Definitely, thanks for your suggestions man ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants