Skip to content

Commit 44361a1

Browse files
committed
misc: fix some things
1 parent 26539ea commit 44361a1

File tree

5 files changed

+45
-44
lines changed

5 files changed

+45
-44
lines changed

.github/workflows/makefile.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -248,41 +248,41 @@ jobs:
248248
- name: Test customfetch
249249
run: ./build/debug/customfetch --wrap-lines
250250

251-
build-macos:
252-
runs-on: macos-latest
253-
permissions:
254-
contents: read
255-
256-
steps:
257-
- uses: actions/checkout@v4
258-
259-
- name: Install the packages
260-
run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree llvm@19
261-
262-
- name: uname -a && clang++ --version
263-
run: uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
264-
265-
- name: Clean
266-
run: make distclean
267-
268-
- name: Compile
269-
run: make DEBUG=1 GUI_APP=0 CXX=$(brew --prefix llvm@19)/bin/clang++
270-
271-
- name: Test neofetch
272-
run: neofetch
273-
274-
- name: Test fastfetch
275-
run: fastfetch
276-
277-
- name: Test customfetch
278-
run: ./build/debug/customfetch -D assets
279-
280-
- name: Upload to github artifacts
281-
uses: actions/upload-artifact@v4
282-
with:
283-
if-no-files-found: error
284-
name: customfetch-macos
285-
path: ./build/debug/customfetch
251+
# build-macos:
252+
# runs-on: macos-latest
253+
# permissions:
254+
# contents: read
255+
#
256+
# steps:
257+
# - uses: actions/checkout@v4
258+
#
259+
# - name: Install the packages
260+
# run: HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 brew install --overwrite fastfetch neofetch tree llvm@19
261+
#
262+
# - name: uname -a && clang++ --version
263+
# run: uname -a && echo "\n" && $(brew --prefix llvm@19)/bin/clang++ --version
264+
#
265+
# - name: Clean
266+
# run: make distclean
267+
#
268+
# - name: Compile
269+
# run: make DEBUG=1 GUI_APP=0 CXX=$(brew --prefix llvm@19)/bin/clang++
270+
#
271+
# - name: Test neofetch
272+
# run: neofetch
273+
#
274+
# - name: Test fastfetch
275+
# run: fastfetch
276+
#
277+
# - name: Test customfetch
278+
# run: ./build/debug/customfetch -D assets
279+
#
280+
# - name: Upload to github artifacts
281+
# uses: actions/upload-artifact@v4
282+
# with:
283+
# if-no-files-found: error
284+
# name: customfetch-macos
285+
# path: ./build/debug/customfetch
286286

287287
# test-suitcase:
288288
# runs-on: ubuntu-22.04

include/config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ class Config : public ConfigBase
163163
o.value_type = BOOL;
164164
o.bool_value = value;
165165
}
166-
else if constexpr (std::is_same_v<T, std::string>)
166+
else if constexpr (std::is_convertible_v<T, std::string>)
167167
{
168168
o.value_type = STR;
169169
o.string_value = value;
170170
}
171-
else if constexpr (std::is_same_v<T, int> || std::is_same_v<T, std::uint16_t>)
171+
else if constexpr (std::is_convertible_v<T, int>)
172172
{
173173
o.value_type = INT;
174174
o.int_value = value;

libcufetch/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ OUTPUT := ../$(BUILDDIR)/$(LIBNAME)
2323

2424
all: $(OUTPUT)
2525
@if [ "$(UNAME_S)" = "Linux" ]; then \
26-
ln -sf libcufetch.so.1.0.0 ../build/debug/libcufetch.so.1; \
27-
ln -sf libcufetch.so.1.0.0 ../build/debug/libcufetch.so; \
26+
ln -sf libcufetch.so.1.0.0 ../$(BUILDDIR)/libcufetch.so.1; \
27+
ln -sf libcufetch.so.1.0.0 ../$(BUILDDIR)/libcufetch.so; \
2828
elif [ "$(UNAME_S)" = "Darwin" ]; then \
29-
ln -sf libcufetch.dylib ../build/debug/libcufetch.1.dylib; \
30-
ln -sf libcufetch.dylib ../build/debug/libcufetch.1.0.0.dylib; \
29+
ln -sf libcufetch.dylib ../$(BUILDDIR)/libcufetch.1.dylib; \
30+
ln -sf libcufetch.dylib ../$(BUILDDIR)/libcufetch.1.0.0.dylib; \
3131
fi
3232

3333
%.o: %.cc

src/display.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ std::vector<std::string> Display::render(const Config& config, const bool alread
418418

419419
for (; i < asciiArt.size(); ++i)
420420
{
421-
std::string line(config.logo_padding_left + asciiArt.at(i).length(), ' ');
421+
std::string line(config.logo_padding_left, ' ');
422422
line += asciiArt.at(i);
423423

424424
layout.push_back(line);

src/main.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static void version()
9696
static void help(bool invalid_opt = false)
9797
{
9898
constexpr std::string_view help(
99-
R"(Usage: customfetch [OPTIONS]...
99+
R"(Usage: customfetch [OPTIONS]...
100100
A command-line, GUI, and Android widget system information tool (like neofetch) focused on customizability and performance.
101101
102102
NOTE: Boolean flags [<BOOL>] accept: "true", 1, "enable", or empty. Any other value is treated as false.
@@ -113,7 +113,7 @@ LOGO OPTIONS:
113113
-n, --no-logo Disable logo display.
114114
-L, --logo-only Print only the logo (skip layout completely).
115115
-s, --source-path <PATH> Path to custom ASCII art/image file.
116-
116+
117117
-a, --ascii-logo-type <TYPE>
118118
Type of ASCII art (typically "small", "old", or empty for default).
119119
Example: "-d arch -a older" looks for "arch_older.txt".
@@ -130,6 +130,7 @@ LAYOUT & FORMATTING:
130130
Example: `-m "${auto}OS: $<os.name>" -m "${auto}CPU: $<cpu>"`.
131131
132132
-N, --no-color Disable all colors (useful for pipes/scripts).
133+
--layout-padding-top <NUM> Layout padding from top (default: 0).
133134
--wrap-lines=[<BOOL>] Enable terminal line wrapping (default: false).
134135
--title-sep <STRING> String to use for $<title.sep> (default: "-").
135136
--sep-reset <STRING> String that resets color (default: ":").

0 commit comments

Comments
 (0)