https://github.com/arnab-developer/arnab.customprompt
This is a library to create a custom prompt.
https://github.com/arnab-developer/arnab.customprompt
Last synced: 4 months ago
JSON representation
This is a library to create a custom prompt.
- Host: GitHub
- URL: https://github.com/arnab-developer/arnab.customprompt
- Owner: Arnab-Developer
- License: mit
- Created: 2025-01-27T10:08:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T06:43:10.000Z (over 1 year ago)
- Last Synced: 2025-11-12T06:20:51.484Z (8 months ago)
- Language: C#
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Custom Prompt
This is a library to create a custom prompt.
Install it from NuGet.
```
dotnet add package Arnab.CustomPrompt
```
## How to use
```csharp
var userDataProvider = new UserDataProvider();
var folderDataProvider = new FolderDataProvider();
var gitDataProvider = new GitDataProvider();
var userSectionProvider = new UserSectionProvider(userDataProvider);
var folderSectionProvider = new FolderSectionProvider(folderDataProvider);
var gitSectionProvider = new GitSectionProvider(gitDataProvider);
var sectionProviders = new List
{
userSectionProvider,
folderSectionProvider,
gitSectionProvider
};
var promptService = new PromptService(sectionProviders);
var prompt = promptService.GetPrompt();
Console.WriteLine(prompt);
```