class Importmap::Commands

def unpin(*packages)

def unpin(*packages)
  if imports = packager.import(*packages, env: options[:env], from: options[:from])
    imports.each do |package, url|
      if packager.packaged?(package)
        puts %(Unpinning "#{package}")
        remove_line_from_file "config/importmap.rb", /pin "#{package}"/
      end
    end
  else
    puts "Couldn't find any packages in #{packages.inspect} on #{options[:provider]}"
  end
end