Skip to content

A collection of common interactive command line user interfaces.

License

Notifications You must be signed in to change notification settings

ayushkumarsinha/Inquirer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inquirer

.NET Core

A collection of common interactive command line user interfaces in C#.

Examples

You can find some examples in the samples project.

Inputs

  • Basic Input
  • Numeric Input
  • Confirmation Input
  • List Input
  • Password Input

Validation

You can set your own valid using the SetValid method in the input. It receives an object that must implement the IValidator interface.

var numbersOnly = new RegexValidator("^[0-9]*$");
ageInput.SetValid(numbersOnly);

We already have some validators that you can use:

  • RegexValidator
  • NumericValidator

But feel free to implement yours or contribute with more validators 😉

Running the tests

Go to folder src and run:

dotnet test

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Inpired by SBoundrias/Inquirer.js

About

A collection of common interactive command line user interfaces.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%