Skip to content

Commit

Permalink
chore: add another TODO (in two parts)
Browse files Browse the repository at this point in the history
  • Loading branch information
telemachus committed Dec 5, 2024
1 parent 2805608 commit 8914a40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/cli/gitmirror.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,15 @@ type cfg struct {

// Gitmirror runs a subcommand and returns success or failure to the shell.
func Gitmirror(args []string) int {
// TODO: parse(args) should return an app ready to go rather than a cfg
// to feed to newAppEnv.
cfg, err := parse(args)
if err != nil {
fmt.Fprintf(os.Stderr, "%s: %s\n", cmd, err)
return exitFailure
}
// TODO: if I get this far, then I can finalize the appEnv by setting
// up a home dir. Or should I do that as part of parse?

app := newAppEnv(cfg)
switch app.subCmd {
Expand Down

0 comments on commit 8914a40

Please sign in to comment.