Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dep/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@
return c.wrapErr(ErrStopFailed, c.stop(c.cmd))
}

// AppendOpt allows adding options after the command has been created.
func (c *Cmd) AppendOpt(opts ...Opt) {
c.opts = append(c.opts, opts...)

Check warning on line 87 in dep/cmd/cmd.go

View check run for this annotation

Codecov / codecov/patch

dep/cmd/cmd.go#L86-L87

Added lines #L86 - L87 were not covered by tests
}

func (c *Cmd) wrapErr(wErr, err error) error {
if err == nil {
return nil
Expand Down