Deploying a WAPT package with options
Published: May 13, 2020 - 2:48 PM
Good morning,
First, the context: Let's imagine I need a package that can run differently depending on the user's profile (by adding plugins based on user roles). And that the profiles are not differentiated by membership in a particular group and that there is no file that allows defining a profile.
Is it possible to run a package with an option to retrieve the option as a variable and execute the part of the Python code that corresponds to the value of the tested variable (like the operation of a function in the end).
THANKS.
Patrice
First, the context: Let's imagine I need a package that can run differently depending on the user's profile (by adding plugins based on user roles). And that the profiles are not differentiated by membership in a particular group and that there is no file that allows defining a profile.
Is it possible to run a package with an option to retrieve the option as a variable and execute the part of the Python code that corresponds to the value of the tested variable (like the operation of a function in the end).
Example: wapt-get install agri-7zip -profile (or option)
THANKS.
Patrice