fastlane icon indicating copy to clipboard operation
fastlane copied to clipboard

🐛 Fastlane `sh` with `log:false` replacing `step_name` to `Step: shell command` instead of step_name parameter

Open flixyudh opened this issue 1 year ago • 0 comments

New Issue Checklist

Issue Description

Currently, everytime I passing log:false into sh actions, the step_name didn't show the message I've set

example lane:

desc 'Listing Directory'
lane:wakwaw do |options|
  sh(
    "ls",
    step_name:"\e[1;94mList current directory\e[0m"
  )
end

showing output:

Driving the lane 'wakwaw' 🚀
-----------------------------------------------
--- Step: List current directory ---
-----------------------------------------------
$ ls
**List of directory in cwd**
fastlane.tools finished successfully 🎉

but when I add log:false like this:

desc 'Listing Directory'
lane:wakwaw do |options|
  sh(
    "ls",
    step_name:"\e[1;94mList current directory\e[0m",
    log:false
  )
end

the output of Step name seems to use default value Step: shell command

Driving the lane 'wakwaw' 🚀
---------------------------
--- Step: shell command ---
---------------------------
fastlane.tools finished successfully 🎉

I expecting the Step name output should use step_name value even when the log parameter is passed.

Command executed
Complete output when running fastlane, including the stack trace and command used
 [REPLACE THIS WITH YOUR INFORMATION] 

Environment

 [REPLACE THIS WITH YOUR INFORMATION] 

flixyudh avatar Jun 07 '24 04:06 flixyudh