Skip to content

Commit cc00a8d

Browse files
committed
Bump to 0.10.0, add branch info
1 parent a037cc4 commit cc00a8d

File tree

8 files changed

+12
-7
lines changed

8 files changed

+12
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.20)
22

3-
project(Clipboard LANGUAGES CXX C VERSION 0.9.1)
3+
project(Clipboard LANGUAGES CXX C VERSION 0.10.0)
44
set(CMAKE_CXX_STANDARD 23)
55
set(CMAKE_CXX_STANDARD_REQUIRED True)
66

src/cb/src/clipboard.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ namespace fs = std::filesystem;
6363
#define GIT_COMMIT_HASH "not available"
6464
#endif
6565

66+
#if !defined(GIT_BRANCH)
67+
#define GIT_BRANCH "not available"
68+
#endif
69+
6670
#if !defined(CLIPBOARD_VERSION)
6771
#define CLIPBOARD_VERSION "(version not available)"
6872
#endif
@@ -82,6 +86,7 @@ extern GlobalFilepaths global_path;
8286
struct Constants {
8387
std::string_view clipboard_version = CLIPBOARD_VERSION;
8488
std::string_view clipboard_commit = GIT_COMMIT_HASH;
89+
std::string_view clipboard_branch = GIT_BRANCH;
8590
std::string_view data_file_name = "rawdata.clipboard";
8691
std::string_view persistent_directory_name = ".local/state/clipboard";
8792
std::string_view original_files_name = "originals";

src/cb/src/locales/en_us.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ EnumArray<std::string_view, 23> action_descriptions = {
5555
"Set a script to run for this clipboard.",
5656
"Share a clipboard with others."};
5757

58-
Message help_message = "[info]┃ This is the Clipboard Project %s (commit %s), the cut, copy, and paste system for the command line.[blank]\n"
58+
Message help_message = "[info]┃ This is the Clipboard Project %s (commit %s, branch %s), the cut, copy, and paste system for the command line.[blank]\n"
5959
"[info][bold]┃ Examples[blank]\n"
6060
"[progress]┃ cb ct Nuclear_Launch_Codes.txt contactsfolder[blank] [help](This cuts the following items into the "
6161
"default clipboard, 0.)[blank]\n"

src/cb/src/locales/es_co.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void setLanguageES_CO() {
113113
action_descriptions[Ignore] = "Ignora contenido en un portapapeles.";
114114
action_descriptions[Search] = "Busca contenido en un portapapeles.";
115115

116-
help_message = "[info]┃ Esto es Clipboard Project %s (commit %s), el sistema para cortar, copiar y pegar adentro del "
116+
help_message = "[info]┃ Esto es Clipboard Project %s (commit %s, branch %s), el sistema para cortar, copiar y pegar adentro del "
117117
"terminal.[blank]\n"
118118
"[info][bold]┃ Cómo usar[blank]\n"
119119
"[progress]┃ cb cortar (cosa) [cosas][blank]\n"

src/cb/src/locales/es_do.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void setLanguageES_DO() {
113113
action_descriptions[Ignore] = "Ignora contenido en un portapapeles.";
114114
action_descriptions[Search] = "Busca contenido en un portapapeles.";
115115

116-
help_message = "[info]┃ Esto es Clipboard Project %s (commit %s), el sistema para cortar, copiar y pegar adentro del "
116+
help_message = "[info]┃ Esto es Clipboard Project %s (commit %s, branch %s), el sistema para cortar, copiar y pegar adentro del "
117117
"terminal.[blank]\n"
118118
"[info][bold]┃ Cómo usar[blank]\n"
119119
"[progress]┃ cb cortar (cosa) [cosas][blank]\n"

src/cb/src/locales/pt_br.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ void setLanguagePT() {
9494
action_descriptions[Ignore] = "Ignora um item ou itens do clipboard.";
9595
action_descriptions[Search] = "Busca um item ou itens do clipboard.";
9696

97-
help_message = "[info]┃ Este é Clipboard Project %s (commit %s), o sistema de recortar, copiar e colar para a linha de "
97+
help_message = "[info]┃ Este é Clipboard Project %s (commit %s, branch %s), o sistema de recortar, copiar e colar para a linha de "
9898
"comando.[blank]\n"
9999
"[info][bold]┃ Como utilizar[blank]\n"
100100
"[progress]┃ cb recortar (item) [itens][blank]\n"

src/cb/src/locales/tr_tr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void setLanguageTR() {
113113
action_descriptions[Ignore] = "Panodaki öğeyi yoksayar.";
114114
action_descriptions[Search] = "Panodaki öğeleri arar.";
115115

116-
help_message = "[info]┃ Clipboard Project %s (commit %s), komut satırı için, kesme, kopyalama ve yapıştırma sistemidir.[blank]\n"
116+
help_message = "[info]┃ Clipboard Project %s (commit %s, branch %s), komut satırı için, kesme, kopyalama ve yapıştırma sistemidir.[blank]\n"
117117
"[info][bold]┃ Nasıl kullanılır[blank]\n"
118118
"[progress]┃ cb kes (öğe) [öğeler][blank] [help](Bu öğe(leri) keser.)[blank]\n"
119119
"[progress]┃ cb kopyala (öğe) [öğeler][blank] [help](Bu öğe(leri) kopyalar.)[blank]\n"

src/cb/src/utils/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ void setFlags() {
506506
.append(action_descriptions[static_cast<Action>(i)])
507507
.append("[blank]\n");
508508
}
509-
printf(help_message().data(), constants.clipboard_version.data(), constants.clipboard_commit.data(), formatColors(actionsList).data());
509+
printf(help_message().data(), constants.clipboard_version.data(), constants.clipboard_commit.data(), constants.clipboard_branch.data(), formatColors(actionsList).data());
510510
exit(EXIT_SUCCESS);
511511
}
512512
}

0 commit comments

Comments
 (0)