-
Notifications
You must be signed in to change notification settings - Fork 33
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
u3d/install: allow to download from one platform while on another one #226
Conversation
lib/u3d/commands.rb
Outdated
@@ -103,7 +103,8 @@ def list_available(options: {}) | |||
def install(args: [], options: {}) | |||
version = specified_or_current_project_version(args[0]) | |||
|
|||
os = U3dCore::Helper.operating_system | |||
UI.user_error!("install can only work with current operating system. You specified #{options[:operating_system]}") if options[:install] && options[:operating_system] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would maybe specify the use of the --no-install here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point I don't know if the user specified install explicitly or if it was the default.
Is this better?
UI.user_error!("You cannot use the --operating_system and the --install options together") if options[:install] && options[:operating_system]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much better indeed!
lib/u3d/commands_generator.rb
Outdated
@@ -139,10 +140,12 @@ def run | |||
c.option '--[no-]download', 'Perform or not downloading before installation. Downloads by default' | |||
c.option '--[no-]install', 'Perform or not installation after downloading. Installs by default' | |||
c.option '-p', '--packages PACKAGES', Array, 'Specifies which packages to download/install. Overriden by --all' | |||
c.option '-o', '--operating_system STRING', String, "Downloads packages for specific OS [#{oses.join(', ')}]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could say here as well that this is a precision for --no-install. Something like Requires the --no-install option
I think we should be a bit clearer regarding this option, and clearly state that this is a focus for |
ed71443
to
2c644ba
Compare
Simple change that allowed me to implement part of the #227 from my Mac :) |
No description provided.