Skip to content

Latest commit

 

History

History

README.md

Bin

This directory contains executable scripts. Most of the scripts here come from Ruby gems installed by bundle install and shouldn't be edited. Others are custom scripts created for this project.

Project Scripts

These scripts are specific to this project.

Script Description
build-docker-image Build a Docker image from the current Git commit.
danbooru-dev-entrypoint Entrypoint for containers started with bin/dev / docker-compose.dev.yaml.
dev Shortcut for docker compose -f docker-compose.dev.yaml.
devcontainer-entrypoint Entrypoint for the devcontainer.
find-untested-urls Find commented URLs in app/logical/source/url/ that have no parser test coverage.
generate-changelog Generate a changelog from Git commits between two refs.
generate-source-tests Generate skeleton parsing and extracting tests for a URL strategy.
github-print-test-results Parse JUnit test output and print GitHub workflow annotations and a summary.
media-conv Convert media files using Danbooru's media conversion logic.
media-ls List properties of media files (like ls, but using Danbooru's media file logic).
setup Install Docker and Git, clone the repo, and initialize config files for a fresh install.
test-sources Run all of a specific site's parsing & extractor tests.
update Update Ruby gems and npm packages and run pending migrations.

Bundler Scripts

These scripts are generated by Ruby gems via bundle install and should not be edited manually.

Script Description
bundle Run Bundler (gem dependency manager).
cdtext Run the cdtext binary.
dotenv Run the dotenv binary.
dtext Run the DText parser CLI.
good_job Run the GoodJob background job processor.
heapy Run the Heapy memory profiler CLI.
puma Run the Puma web server.
pumactl Control a running Puma process.
rackup Start a Rack-compatible web server.
rails Run Rails CLI commands (console, server, generate, etc).
rake Run Rake tasks.
rbtrace Trace method calls in a running Ruby process.
rdbg Run the Ruby debugger.
rubocop Run the Ruby linter.
shakapacker Run the Shakapacker webpack CLI.
shakapacker-dev-server Start the Shakapacker webpack dev server with hot reload.