lib/u3d/commands_generator.rb in u3d-1.0.1 vs lib/u3d/commands_generator.rb in u3d-1.0.2
- old
+ new
@@ -146,20 +146,46 @@
options.default download: true
Commands.install(args: args, options: convert_options(options))
end
end
+ command :dependencies do |c|
+ c.syntax = 'u3d dependencies'
+ c.summary = 'Installs Unity dependencies. [Linux only]'
+ c.description = %(
+#{c.summary}
+
+Regarding the package manager: if dpkg is installed, u3d uses apt-get else if rpm is installed yum is used. If none of them is insalled, fails.
+
+Regarding the dependencies themselves: only dependencies for the editor are installed. WebGL, Android and Tizen require others that you will have to install manually.
+More on that: https://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/
+ )
+ c.action do |_args, _options|
+ Commands.install_dependencies
+ end
+ end
+
command :credentials do |c|
c.syntax = "u3d credentials <#{Commands.credentials_actions.join(' | ')}>"
c.description = 'Manages keychain credentials so u3d remembers them. [OSX only]'
c.action do |args, options|
Commands.credentials(args: args, options: convert_options(options))
end
end
command :prettify do |c|
c.syntax = 'u3d prettify <logfile>'
- c.description = 'Prettify a saved logfile'
+ c.summary = 'Prettify a saved logfile'
+ c.description = %(
+ #{c.summary}
+
+ The default prettifier rules file is packaged with u3d (#{U3d::LogAnalyzer::RULES_PATH}).
+ You may which to pass your own using the environment variable U3D_RULES_PATH.
+
+ E.g. U3D_RULES_PATH=my_rules.json u3d prettify ...
+
+ Fore more information about how the rules work, see https://github.com/DragonBox/u3d/blob/master/LOG_RULES.md
+ )
c.action do |args, _options|
Commands.local_analyze(args: args)
end
end