module Makit::Files

def self.show

show all the files constants in a nicely formatted table format with the name of the constant and the value
def self.show
  # Array of constant names (symbols)

  constant_names = [:CSPROJ]
  # Find the length of the longest constant name and add 1

  max_length = constant_names.map(&:to_s).max_by(&:length).length + 1
  # Iterate through each constant name

  constant_names.each do |constant_name|
    begin
      constant_value = const_get(constant_name)  # Fetch the value of the constant

      if (constant_value != nil && File.exist?(constant_value))
        constant_value = constant_value.colorize(:green)
      end
      # Print the constant name right justified to the max_length

      puts "#{constant_name.to_s.rjust(max_length)} = #{constant_value}"
    rescue NameError
      # Handle the case where the constant is not defined

      puts "#{constant_name.to_s.rjust(max_length)} = [Constant not defined]"
    end
  end
end