[ FEAT ] - CP Subcommand
CP - Subcommand
copy profiles.
@rusty-snake More info needed, copy profile to same directory or to a different directory, provided an argument.
Copying between /etc/firejail/, ~/.config/firejail and ..
Syntax ideas, fell free to comment others/improved:
-
<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
- Arguments
fjp cp --sys firefox --usr
fjp cp --cwd thunderbird.profile --usr thunderbird-beta.profile
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
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.