Skip to content

Support global options #206

@ikkentim

Description

@ikkentim

It would be nice if I could specify options which are globally available for all commands. For example git has a global --namespace=<name> option, which allows the namespace to be set for all (sub)commands.

I'd imagine in Typin, this would mean a global model could be set on the CliApplicationBuilder using builder.UseGlobalOptions<MyGlobalOptionsModel>() after which the model would be available through DI.

Metadata

Metadata

Assignees

Labels

TypinTypin library related issuesenhancementNew feature or request

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions