posh/pkg/command/tree/args.go
Kevin Franklin Kim e2ad376b6c initial commit
2023-01-03 15:37:15 +01:00

12 lines
126 B
Go

package tree
type Args []*Arg
func (a Args) Last() *Arg {
if len(a) > 0 {
return a[len(a)-1]
} else {
return nil
}
}