Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Guppi.Console/Guppi.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/rprouse/guppi</PackageProjectUrl>
<RepositoryUrl>https://github.com/rprouse/guppi</RepositoryUrl>
<PackageId>dotnet-guppi</PackageId>
<Version>6.5.3</Version>
<Version>6.5.4</Version>
<PackAsTool>true</PackAsTool>
<ToolCommandName>guppi</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
Expand Down
4 changes: 4 additions & 0 deletions Guppi.Console/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"commandName": "Project",
"commandLineArgs": "weather sunrise"
},
"Guppi weather daily": {
"commandName": "Project",
"commandLineArgs": "weather daily"
},
"Guppi todo sync": {
"commandName": "Project",
"commandLineArgs": "todo sync"
Expand Down
4 changes: 3 additions & 1 deletion Guppi.Console/Skills/WeatherSkill.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public IEnumerable<Command> GetCommands()

var sunrise = new Command("sunrise", "Views sunrise and sunset times") { location };
sunrise.Handler = CommandHandler.Create(async (string location) => await Sunrise(location));
sunrise.AddAlias("sunset");
sunrise.AddAlias("sun");

var configure = new Command("configure", "Configures the weather provider");
configure.AddAlias("config");
Expand Down Expand Up @@ -154,7 +156,7 @@ private static IEnumerable<Markup> WeatherLineThree(DailyWeather[] daily)
private static IEnumerable<Markup> WeatherLineFour(DailyWeather[] daily)
{
for (int i = 0; i < 4 && i < daily.Length; i++)
yield return new Markup($"{daily[i].AsciiIcon[3]} [skyblue2]:droplet:{daily[i].Rain}mm[/] [grey89]:snowflake:{daily[i].Snow}mm[/]");
yield return new Markup($"{daily[i].AsciiIcon[3]} [skyblue2]:droplet:{daily[i].Rain}mm[/] [grey89]:snowflake: {daily[i].Snow}mm[/]");
}

private static IEnumerable<Markup> WeatherLineFive(DailyWeather[] daily)
Expand Down
Loading