Sha256: ae3636f7f514b9e5655b019f003bce8726d9a0d2406ef4033a60c9c263aaa670
Contents?: true
Size: 973 Bytes
Versions: 7
Compression:
Stored size: 973 Bytes
Contents
module Fastlane module Actions class ClipboardAction < Action def self.run(params) UI.message("Storing '#{params[:value]}' in the clipboard 🎨") `echo "#{params[:value]}" | tr -d '\n' | pbcopy` # we don't use `sh`, as the command looks ugly end ##################################################### # @!group Documentation ##################################################### def self.description "Copies a given string into the clipboard. Works only on macOS" end def self.available_options [ FastlaneCore::ConfigItem.new(key: :value, env_name: "FL_CLIPBOARD_VALUE", description: "The string that should be copied into the clipboard") ] end def self.authors ["KrauseFx"] end def self.is_supported?(platform) true end end end end
Version data entries
7 entries across 7 versions & 1 rubygems