Skip to content

Additional DMFR subcommands#544

Merged
irees merged 5 commits intomainfrom
dmfr-sub
Dec 29, 2025
Merged

Additional DMFR subcommands#544
irees merged 5 commits intomainfrom
dmfr-sub

Conversation

@irees
Copy link
Copy Markdown
Contributor

@irees irees commented Dec 28, 2025

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 29, 2025

Generated Code Check ✅

All generated code is up to date.

@irees irees marked this pull request as ready for review December 29, 2025 11:53
Copilot AI review requested due to automatic review settings December 29, 2025 11:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restructures DMFR commands from a flat namespace to a hierarchical structure, adds support for reading from stdin, and introduces new functionality for generating DMFR files from directories.

  • Refactors dmfr-format and dmfr-lint commands to dmfr format and dmfr lint subcommands under a new dmfr parent command
  • Adds dmfr from-dir subcommand to generate DMFR registries from directories containing GTFS zip files
  • Implements stdin support for the sync command using - argument
  • Adds --dmfr flag to fetch and import commands for filtering by feed IDs from DMFR files
  • Adds --secret-env flag to fetch command for specifying secrets via environment variables

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
sync/sync_operator.go Refactors error handling from if-else to switch statement for cleaner code
sync/sync.go Adds support for pre-parsed registries from stdin and refactors to avoid duplicate file loading
schema/postgres/bootstrap.sh Extends script to support importing GTFS feeds from directories or DMFR files during bootstrap
doc/cli/transitland_sync.md Documents stdin support and provides usage examples
doc/cli/transitland_import.md Documents new --dmfr flag
doc/cli/transitland_fetch.md Documents new --dmfr and --secret-env flags
doc/cli/transitland_dmfr_lint.md New documentation for dmfr lint subcommand
doc/cli/transitland_dmfr_from-dir.md New documentation for dmfr from-dir subcommand
doc/cli/transitland_dmfr_format.md New documentation for dmfr format subcommand
doc/cli/transitland_dmfr.md New documentation for dmfr parent command
doc/cli/transitland_dmfr-lint.md Removed (replaced by hierarchical structure)
doc/cli/transitland_dmfr-format.md Removed (replaced by hierarchical structure)
doc/cli/transitland.md Updates command reference to reflect new dmfr command structure
cmds/sync_cmd.go Implements stdin support for reading DMFR from standard input
cmds/import_cmd.go Adds --dmfr flag to filter imports by feed IDs from DMFR file
cmds/fetch_cmd.go Adds --dmfr flag and --secret-env flag for environment variable-based secrets
cmds/dmfr_lint_cmd.go Renames LintCommand to DmfrLintCommand
cmds/dmfr_from_dir_cmd.go New command to generate DMFR from directory of GTFS files
cmds/dmfr_format_cmd.go Renames FormatCommand to DmfrFormatCommand
cmds/dmfr_cmd.go New parent command for DMFR subcommands
cmds/aliases.go Provides backwards compatibility aliases for renamed commands
cmd/transitland/main.go Updates command registration to use new hierarchical structure with hidden aliases

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@irees irees merged commit 5f99aac into main Dec 29, 2025
6 checks passed
@irees irees deleted the dmfr-sub branch December 29, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants