Skip to content

Commit

Permalink
chore: release 0.8.0 (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
Disservin authored Apr 28, 2024
1 parent 71eb666 commit 68240df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
4 changes: 2 additions & 2 deletions man
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FAST-CHESS (alpha-0.7.0) General Commands Manual FAST-CHESS (alpha-0.7.0)
FAST-CHESS (alpha-0.8.0) General Commands Manual FAST-CHESS (alpha-0.8.0)

NAME
fast-chess - a command-line tool for managing chess games with engines
Expand Down Expand Up @@ -210,4 +210,4 @@ COPYRIGHT
This software is licensed under the MIT license. See the LICENSE file for details.

VERSION
fast-chess version alpha-0.7.0
fast-chess version alpha-0.8.0
27 changes: 14 additions & 13 deletions src/cli/cli.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,23 +48,24 @@ class OptionsParser {
}

static void printVersion() {
std::unordered_map<std::string, std::string> months({{"Jan", "01"},
{"Feb", "02"},
{"Mar", "03"},
{"Apr", "04"},
{"May", "05"},
{"Jun", "06"},
{"Jul", "07"},
{"Aug", "08"},
{"Sep", "09"},
{"Oct", "10"},
{"Nov", "11"},
{"Dec", "12"}});
const static std::unordered_map<std::string, std::string> months( //
{{"Jan", "01"},
{"Feb", "02"},
{"Mar", "03"},
{"Apr", "04"},
{"May", "05"},
{"Jun", "06"},
{"Jul", "07"},
{"Aug", "08"},
{"Sep", "09"},
{"Oct", "10"},
{"Nov", "11"},
{"Dec", "12"}});

std::string month, day, year;
std::stringstream ss, date(__DATE__); // {month} {date} {year}

ss << "fast-chess alpha-0.7.0-";
ss << "fast-chess alpha-0.8.0-";
#ifdef GIT_DATE
ss << GIT_DATE;
#else
Expand Down

0 comments on commit 68240df

Please sign in to comment.