Sha256: 1da2239d1e840b3ec7f4ff21568ef9be0b627562141066c41ec0b1ed314d1b38
Contents?: true
Size: 989 Bytes
Versions: 2
Compression:
Stored size: 989 Bytes
Contents
module Fastlane module Actions class ClipboardAction < Action def self.run(params) Helper.log.info "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 Mac OS X computers" 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastlane-1.20.0 | lib/fastlane/actions/clipboard.rb |
fastlane-1.19.0 | lib/fastlane/actions/clipboard.rb |