config_get

in lib/gdk/command/config.rb [37:48]


      def config_get(*name)
        GDK::Output.abort('Usage: gdk config get <name>', report_error: false) if name.empty?

        GDK::Output.puts(config.dig(*name))

        true
      rescue GDK::ConfigSettings::SettingUndefined
        GDK::Output.abort("Cannot get config for #{name.join('.')}", report_error: false)
      rescue GDK::ConfigSettings::UnsupportedConfiguration, GDK::ConfigType::SettingsArray::ArrayAccessError => e
        GDK::Output.abort("#{e.message}.", e, report_error: false)
      end