Open nitrocode opened 2 years ago
Correct point. The session Alias by default cannot be unique, but it is way easier to remember the session to script.
Thanks for the suggestion, I think is something that can be made in the CLI function
@andreacavagna01 it would be nice too if this command can be run as soon as we install the leapp-cli without having to create the idp-url or profile.
I'd we provide the profile name and idp-url to leapp session add
and the idp-url or profile name doesnt exist, it should just create it. That way it's nice and easy.
@urz9999 this is working for CLI or needs to be implemented?
we already have the default profile, so if no profile is passed, we can use the default one, but the IdP URL must be created is something that only the user knows; there is no "default URL."
Also, because the alias is not unique, if you use the session alias to define a session, we have to implement a logic to show the user all the possible sessions to launch, and while this is usually not a problem in interactive mode, is something we must account to for scripting, and the user too.
So, in short, it must be implemented.
Is your feature request related to a problem? Please describe. It's a pain point to look up the ID of a profile or session in order to use
leapp session add
andleapp session start
Currently
Describe the solution you'd like Use profile name and session name instead of IDs
leapp profile create
leapp idp-url create
This would simplify the above script
Describe alternatives you've considered Use a bash script like the one above in order to retrieve the profile and session IDs
Additional context