Skip to content

Commit

Permalink
Merge pull request #31 from FRACerqueira/V4
Browse files Browse the repository at this point in the history
v4.0.1 HotFix and reviewed docs (with api docs)
  • Loading branch information
FRACerqueira committed Jul 21, 2023
2 parents d41460e + 2cc8ba1 commit 2b8cbb3
Show file tree
Hide file tree
Showing 12 changed files with 41 additions and 24 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
name: Build

on: [push, pull_request]

on:
push:
paths-ignore:
- '**.png'
- '**.gif'
- '**.md'
- 'README.txt'
pull_request:
paths-ignore:
- '**.png'
- '**.gif'
- '**.md'
- 'README.txt'
env:
DOTNET_VERSION: 7.0.x

Expand Down
15 changes: 13 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
name: "CodeQL"

on: [push, pull_request]

on:
push:
paths-ignore:
- '**.png'
- '**.gif'
- '**.md'
- 'README.txt'
pull_request:
paths-ignore:
- '**.png'
- '**.gif'
- '**.md'
- 'README.txt'
env:
DOTNET_VERSION: 7.0.x

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
- Switch (style on/off)
- Wait Process (Run background tasks Sequential/Parallel) with elapsedtime and spinner
- Wait Time with countdown and spinner
- ChartBar with wnabled Interaction to switch layout, Legend and order when browse the charts / Legends.
- ChartBar with enabled Interaction to switch layout, Legend and order when browse the charts / Legends.
- Progress bar with 8 types , gradient colors and spinner
- Browser File and Folder with multi-select, colors and spinner
- Treeview hierarchical structures with multi-select and colors
Expand Down
2 changes: 1 addition & 1 deletion Src/Controls/Calendar/CalendarControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ private void WriteTooltip(ScreenBuffer screenBuffer)
var linedays = Messages.MoveDays;
var lineweek = Messages.MoveDayWeek;
var linemonth = Messages.MoveMonth;
var lineyear = Messages.MoveMonth;
var lineyear = Messages.MoveYear;
var linetoday = $", {Messages.MoveToday}";

screenBuffer.NewLine();
Expand Down
8 changes: 4 additions & 4 deletions Src/Controls/TasksProcess/IControlWait.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface IControlWait : IPromptControls<IEnumerable<StateProcess>>
IControlWait TaskTitle(string value);

/// <summary>
/// Define if show Elapsed Time for each task and the format of Elapsed Time.
/// Define if show Elapsed Time for each task.
/// </summary>
/// <returns><see cref="IControlWait"/></returns>
IControlWait ShowElapsedTime();
Expand Down Expand Up @@ -83,10 +83,10 @@ public interface IControlWait : IPromptControls<IEnumerable<StateProcess>>
/// Add list of tasks to execute with title and description
/// </summary>
/// <param name="stepMode">Sequential or parallel execution</param>
/// <param name="id">TaskTitle of tasks</param>
/// <param name="description">Description of tasks</param>
/// <param name="id">Id of tasks</param>
/// <param name="label">Label of tasks</param>
/// <param name="process">list of tasks</param>
/// <returns><see cref="IControlWait"/></returns>
IControlWait AddStep(StepMode stepMode, string? id, string? description, params Action<CancellationToken>[] process);
IControlWait AddStep(StepMode stepMode, string? id, string? label, params Action<CancellationToken>[] process);
}
}
3 changes: 2 additions & 1 deletion Src/NugetREADME.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ PromptPlus **Supports 4/8/24-bit colors** in the terminal with auto-detection of

**PromptPlus** was developed in c# with the **netstandard2.1**, **.Net 6** and **.Net 7** target frameworks.

## What news in PromptPlus V4.0.0
## What news in PromptPlus V4.0.1
- Fixed duplicate tooltip in calendar
- New console engine
- Supports 4/8/24-bit colors
- Auto-detection of the current terminal's capabilities
Expand Down
2 changes: 1 addition & 1 deletion Src/PromptPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<PackageId>PromptPlus</PackageId>
<PackageReadmeFile>NugetREADME.md</PackageReadmeFile>
<PackageProjectUrl>https://fracerqueira.github.io/PromptPlus</PackageProjectUrl>
<Version>4.0.0</Version>
<Version>4.0.1</Version>
<PackageIcon>icon.png</PackageIcon>
<Copyright>© 2021 - Fernando Cerqueira </Copyright>
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
Expand Down
4 changes: 2 additions & 2 deletions Src/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ PromptPlus was developed in c# with target frameworks:
- .NET 6
- .NET 7

*** What news in PromptPlus V4.0.0 ***
*** What news in PromptPlus V4.0.1 ***
---------------------------------------

- Fixed duplicate tooltip in calendar
- New console engine
- Supports 4/8/24-bit colors
- Auto-detection of the current terminal's capabilities
Expand Down
8 changes: 4 additions & 4 deletions docs/apis/pplus.controls.icontrolwait.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ list of tasks
Add list of tasks to execute with title and description

```csharp
IControlWait AddStep(StepMode stepMode, string id, string description, params Action<CancellationToken>[] process)
IControlWait AddStep(StepMode stepMode, string id, string label, params Action<CancellationToken>[] process)
```

#### Parameters
Expand All @@ -56,10 +56,10 @@ IControlWait AddStep(StepMode stepMode, string id, string description, params Ac
Sequential or parallel execution

`id` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
TaskTitle of tasks
Id of tasks

`description` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
Description of tasks
`label` [String](https://docs.microsoft.com/en-us/dotnet/api/system.string)<br>
Label of tasks

`process` [Action&lt;CancellationToken&gt;[]](https://docs.microsoft.com/en-us/dotnet/api/system.action-1)<br>
list of tasks
Expand Down
2 changes: 0 additions & 2 deletions docs/globalsettings.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ PromptPlus.Config.Symbols(SymbolType.Done, "V", "√");
var values = PromptPlus.Config.Symbols(SymbolType.Done);
```


### SymbolType: (NO-UNICODE,UNICODE)

- MaskEmpty: ("_", "■")
Expand All @@ -83,4 +82,3 @@ var values = PromptPlus.Config.Symbols(SymbolType.Done);
- DoubleBorder: ("=", "═")
- SingleBorder: ("-", "─")
- HeavyBorder: ("*", "━")

3 changes: 0 additions & 3 deletions docs/hotkeys.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ PromptPlus.Config.PasswordViewPress = new HotKey(UserHotKey.F7)
- ChartBarSwitchOrderPress
- CalendarSwitchNotesPress




### Instance Hotkeys
[**Top**](#promptplus-hotkeys)

Expand Down
1 change: 0 additions & 1 deletion docs/snapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ For each snapshot, the title is **name of projet** in folder at github [**Sample
[**Top**](#promptplus-snapshot) | [**Main**](index.md#table-of-contents) | [MultiSelectUserScopeSamples](https://github.com/FRACerqueira/PromptPlus/tree/main/Samples/MultiSelectUserScopeSamples) ,
[MultiSelectUserTypeSamples](https://github.com/FRACerqueira/PromptPlus/tree/main/Samples/MultiSelectUserTypeSamples)


### Wait Process

[**Top**](#promptplus-snapshot) | [**Main**](index.md#table-of-contents) | [WaitTasksSamples](https://github.com/FRACerqueira/PromptPlus/tree/main/Samples/WaitTasksSamples)
Expand Down

0 comments on commit 2b8cbb3

Please sign in to comment.