0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

fastlaneの出力に色をつける

Posted at

Come on 色付き出力

fastlane で何か文字列を出力したいときに

  puts "print messages."

とかやっても、普通に白い文字(黒い背景なら)が表示されるだけです。
組み込み Action が出すようなカラフル出力にしたい場合は、

このよう⬇️⬇️⬇️に書くと...

  UI.error("error")
  UI.important("important")
  UI.success("success")
  UI.message("message")
  UI.deprecated("deprecated")
  UI.command("command")
  UI.command_output("command_output")
  UI.verbose("verbose")
  UI.header("header")

このように⬇️⬇️⬇️表示されます!

fastlane.png

参考

ここに書いてありました。

⬆️⬆️⬆️の User input and output のとこ(アンカーが無い💧)。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?