Skip to content

Commit

Permalink
doc: add note on how Cmd.Parent is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ammario committed Mar 15, 2024
1 parent 9866887 commit e20c1db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (
// Cmd describes an executable command.
type Cmd struct {
// Parent is the direct parent of the command.
//
// It is set automatically when an invokation runs.
Parent *Cmd
// Children is a list of direct descendants.
Children []*Cmd
Expand Down

0 comments on commit e20c1db

Please # to comment.