From 1c06b63e8375b72c069d9bbd39ae1e577cfe53fd Mon Sep 17 00:00:00 2001 From: Manish Rathi Date: Sun, 13 Jun 2021 16:03:19 +0200 Subject: [PATCH] [action][environment_variable] remove all instances of `is_string` in options and use `type` --- .../fastlane/actions/environment_variable.rb | 34 +++++++------------ 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/fastlane/lib/fastlane/actions/environment_variable.rb b/fastlane/lib/fastlane/actions/environment_variable.rb index 5ecf28777ff..211d0c4cc31 100644 --- a/fastlane/lib/fastlane/actions/environment_variable.rb +++ b/fastlane/lib/fastlane/actions/environment_variable.rb @@ -29,27 +29,19 @@ def self.author def self.available_options [ - FastlaneCore::ConfigItem.new( - key: :set, - env_name: 'FL_ENVIRONMENT_VARIABLE_SET', - description: 'Set the environment variables named', - optional: true, - type: Hash - ), - FastlaneCore::ConfigItem.new( - key: :get, - env_name: 'FL_ENVIRONMENT_VARIABLE_GET', - description: 'Get the environment variable named', - optional: true, - is_string: true - ), - FastlaneCore::ConfigItem.new( - key: :remove, - env_name: 'FL_ENVIRONMENT_VARIABLE_REMOVE', - description: 'Remove the environment variable named', - optional: true, - is_string: true - ) + FastlaneCore::ConfigItem.new(key: :set, + env_name: 'FL_ENVIRONMENT_VARIABLE_SET', + description: 'Set the environment variables named', + optional: true, + type: Hash), + FastlaneCore::ConfigItem.new(key: :get, + env_name: 'FL_ENVIRONMENT_VARIABLE_GET', + description: 'Get the environment variable named', + optional: true), + FastlaneCore::ConfigItem.new(key: :remove, + env_name: 'FL_ENVIRONMENT_VARIABLE_REMOVE', + description: 'Remove the environment variable named', + optional: true) ] end