github.com/googollee/clic@v0.1.5/source/source.go (about)

     1  package source
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/googollee/clic/structtags"
     7  )
     8  
     9  type Source interface {
    10  	Register(fset FlagSet, fields []structtags.Field) error
    11  	Parse(ctx context.Context, args []string) error
    12  	Error() error
    13  }