Skip to content

Commit 08e26ec

Browse files
authored
Merge branch 'main' into mb/src-abc-command
2 parents b8ada6a + f71cf56 commit 08e26ec

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Command Guidelines
2+
3+
- When adding new commands, use `urfave/cli` instead of the legacy `commander` pattern.
4+
- Register new `urfave/cli` commands in the `migratedCommands` map in `cmd/src/run_migration_compat.go`.

cmd/src/main.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ func main() {
103103
}
104104

105105
// if we didn't run a migrated command, then lets try running the legacy version
106-
if !ranMigratedCmd {
107-
commands.run(flag.CommandLine, "src", usageText, normalizeDashHelp(os.Args[1:]))
108-
}
106+
commands.run(flag.CommandLine, "src", usageText, normalizeDashHelp(os.Args[1:]))
109107
}
110108

111109
// normalizeDashHelp converts --help to -help since Go's flag parser only supports single dash.

0 commit comments

Comments
 (0)