Commit c0f0c98

mo khan <mo@mokhan.ca>
2025-11-10 18:50:04
chore: add rake task to list files for generating prompt
1 parent f84ec1d
Changed files (1)
Rakefile
@@ -5,4 +5,15 @@ require "rspec/core/rake_task"
 
 RSpec::Core::RakeTask.new(:spec)
 
+task :files do
+  IO.popen(%w[git ls-files], chdir: __dir__, err: IO::NULL) do |ls|
+    ls.readlines.each do |f|
+      next if f.start_with?(*%w[bin/ spec/ pkg/ .git .rspec Gemfile Rakefile])
+      next if f.strip.end_with?(*%w[.toml .txt .md])
+
+      puts f
+    end
+  end
+end
+
 task default: %i[spec]