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

[ FEAT ] - CP Subcommand #20

Open
UsairimIsani opened this issue Sep 17, 2020 · 3 comments
Open

[ FEAT ] - CP Subcommand #20

UsairimIsani opened this issue Sep 17, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@UsairimIsani
Copy link
Contributor

CP - Subcommand

copy profiles.

@rusty-snake More info needed, copy profile to same directory or to a different directory, provided an argument.

@rusty-snake
Copy link
Owner

Copying between /etc/firejail/, ~/.config/firejail and ..

Syntax ideas, fell free to comment others/improved:

  1. <PREFIX> : <NAME for profile::Profile>
fjp cp sys:firefox usr ==> cp /etc/firejail/firefox.profile ~/.config/firejail
fjp cp cwd:thunderbird.profile ~:thunderbird-beta.profile ==> cp ./thunderbird.profile ~/.config/firejail/thunderbird-beta.profile
  1. Arguments
fjp cp --sys firefox --usr
fjp cp --cwd thunderbird.profile --usr thunderbird-beta.profile

@rusty-snake rusty-snake added the enhancement New feature or request label Sep 17, 2020
@UsairimIsani
Copy link
Contributor Author

I think the second syntax is more intuitive as people are accustomed to similar syntax.
Can we do copy the other way around as well, for example.

fjp cp --usr firefox --sys
fjp cp --usr thunderbird.profile --cwd thunderbird-beta.profile

This would allow users to overwrite system profiles. Should this be allowed?
@rusty-snake

@rusty-snake
Copy link
Owner

The second syntax is also easier for shell-completions.

This would allow users to overwrite system profiles. Should this be allowed?

I can' t find a reason why this should be forbidden.

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

No branches or pull requests

2 participants