-
Notifications
You must be signed in to change notification settings - Fork 0
Back-merge v0.1.0 from main into develop #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3935614
Merge pull request #4 from gui-cs/tig/readme-and-hero-gif
tig 78455f3
Plan: help command and --help flag should render markdown
tig 642d31e
Fix help command and --help flag to render markdown
tig 98efef3
Fix help TUI: set Markdown.Text in Initialized handler, add integrati…
tig b4af0ca
Merge pull request #6 from gui-cs/tig/fix-help-markdown-rendering
tig 00293b2
Add hero GIF recording and polish README
tig 694dc1c
Merge pull request #8 from gui-cs/tig/hero-gif-and-readme
tig 73a1685
Release v0.1.0-beta.1 (#17)
tig 0509092
Release v0.1.0 (#19)
tig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
examples/Terminal.Gui.Cli.ExampleApp/Terminal.Gui.Cli.ExampleApp.csproj
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| using Terminal.Gui.App; | ||
|
|
||
| namespace Terminal.Gui.Cli.Greet; | ||
|
|
||
| /// <summary>An input command that says goodbye to someone.</summary> | ||
| public sealed class FarewellCommand : ICliCommand<string> | ||
| { | ||
| /// <inheritdoc /> | ||
| public string PrimaryAlias => "farewell"; | ||
|
|
||
| /// <inheritdoc /> | ||
| public IReadOnlyList<string> Aliases { get; } = ["farewell", "bye"]; | ||
|
|
||
| /// <inheritdoc /> | ||
| public string Description => "Say goodbye to someone."; | ||
|
|
||
| /// <inheritdoc /> | ||
| public CommandKind Kind => CommandKind.Input; | ||
|
|
||
| /// <inheritdoc /> | ||
| public Type ResultType => typeof (string); | ||
|
|
||
| /// <inheritdoc /> | ||
| public IReadOnlyList<CommandOptionDescriptor> Options { get; } = | ||
| [ | ||
| new ("until", "u", typeof (string), "When you expect to meet again.", false, null) | ||
| ]; | ||
|
|
||
| /// <inheritdoc /> | ||
| public bool AcceptsPositionalArgs => true; | ||
|
|
||
| /// <inheritdoc /> | ||
| public Task<CommandResult<string>> RunAsync ( | ||
| IApplication app, | ||
| string? initial, | ||
| CommandRunOptions options, | ||
| CancellationToken cancellationToken) | ||
| { | ||
| var name = options.Arguments.Count > 0 | ||
| ? string.Join (" ", options.Arguments) | ||
| : initial ?? "World"; | ||
| var until = options.CommandOptions.TryGetValue ("until", out var untilValue) | ||
| ? untilValue | ||
| : null; | ||
|
|
||
| var farewell = until is not null | ||
| ? $"Goodbye, {name}! See you {until}." | ||
| : $"Goodbye, {name}!"; | ||
|
|
||
| return Task.FromResult (new CommandResult<string> (CommandStatus.Ok, farewell, null, null)); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This command still references
examples/Terminal.Gui.Cli.ExampleApp, but that project is deleted in this commit and the solution now includesexamples/greet/Terminal.Gui.Cli.Greet.csproj. The documented “Try the example app” command will fail with a missing project path for users building from source.Useful? React with 👍 / 👎.