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

u3d/install: allow to download from one platform while on another one #226

Merged
merged 2 commits into from
Jan 15, 2018

Conversation

lacostej
Copy link
Member

No description provided.

@@ -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]
Copy link
Member

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

Copy link
Member Author

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]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better indeed!

@@ -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(', ')}]"
Copy link
Member

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

@niezbop
Copy link
Member

niezbop commented Jan 15, 2018

I think we should be a bit clearer regarding this option, and clearly state that this is a focus for --no-install. Great addition besides that.

@lacostej lacostej force-pushed the download_other_platform branch from ed71443 to 2c644ba Compare January 15, 2018 09:47
@lacostej
Copy link
Member Author

Simple change that allowed me to implement part of the #227 from my Mac :)

@lacostej lacostej merged commit bda41dd into DragonBox:master Jan 15, 2018
@lacostej lacostej deleted the download_other_platform branch January 15, 2018 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants