Skip to content

Commit

Permalink
[fastlane][lanemanager] Fastlane command suggestion improvement when …
Browse files Browse the repository at this point in the history
…running using bundler (#18515)

* [fastlane][lanemanager] Fastlane command suggestion improvement when running using bundler

* PR review fix
  • Loading branch information
crazymanish committed Apr 14, 2021
1 parent e5c127f commit c5210cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fastlane/lib/fastlane/lane_manager.rb
Expand Up @@ -107,12 +107,13 @@ def self.choose_lane(ff, platform)

puts(table)

fastlane_command = Helper.bundler? ? "bundle exec fastlane" : "fastlane"
i = UI.input("Which number would you like run?")

i = i.to_i - 1
if i >= 0 && available[i]
selection = available[i].last.pretty_name
UI.important("Running lane `#{selection}`. Next time you can do this by directly typing `fastlane #{selection}` 🚀.")
UI.important("Running lane `#{selection}`. Next time you can do this by directly typing `#{fastlane_command} #{selection}` 🚀.")
platform = selection.split(' ')[0]
lane_name = selection.split(' ')[1]

Expand All @@ -123,7 +124,7 @@ def self.choose_lane(ff, platform)

return platform, lane_name # yeah
else
UI.user_error!("Run `fastlane` the next time you need to build, test or release your app 🚀")
UI.user_error!("Run `#{fastlane_command}` the next time you need to build, test or release your app 🚀")
end
end
end
Expand Down

0 comments on commit c5210cb

Please sign in to comment.