Add progress bar and structured logging
- Progress bar (deps/log.c submodule added): * Unicode block chars (██░░), braille spinner for indeterminate mode * Shows: percentage, found/total, seeds/sec (EMA), ETA * Auto-enables on TTY, suppressed when piped * Clears and redraws cleanly around log messages and matches - Logging via rxi/log.c: * Timestamped, colored levels: TRACE DEBUG INFO WARN ERROR FATAL * --log-level trace|debug|info|warn|error|off * --log-file FILE for persistent log (full timestamps, no colors) - New flags: --no-progress, --progress (force), --log-level, --log-file Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
843f1ce8f3
commit
14a294b768
5 changed files with 648 additions and 730 deletions
11
Makefile
11
Makefile
|
|
@ -20,18 +20,23 @@ CUBIOMES_SRCS = \
|
|||
|
||||
CUBIOMES_OBJS = $(CUBIOMES_SRCS:.c=.o)
|
||||
|
||||
LOG_OBJ = deps/log.c/src/log.o
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: celseed
|
||||
|
||||
celseed: celseed.o $(CUBIOMES_OBJS)
|
||||
celseed: celseed.o $(CUBIOMES_OBJS) $(LOG_OBJ)
|
||||
$(CC) -o $@ $^ -lm
|
||||
|
||||
celseed.o: celseed.c
|
||||
$(CC) $(CFLAGS) -Wno-format-truncation -Wno-stringop-truncation -c -o $@ $<
|
||||
$(CC) $(CFLAGS) -Wno-format-truncation -Wno-stringop-truncation -Wno-misleading-indentation -c -o $@ $<
|
||||
|
||||
$(CUBIOMES_OBJS): %.o: %.c
|
||||
$(CC) $(CFLAGS) -Icubiomes -w -c -o $@ $<
|
||||
|
||||
$(LOG_OBJ): deps/log.c/src/log.c
|
||||
$(CC) $(CFLAGS) -w -c -o $@ $<
|
||||
|
||||
clean:
|
||||
rm -f celseed celseed.o $(CUBIOMES_OBJS)
|
||||
rm -f celseed celseed.o $(CUBIOMES_OBJS) $(LOG_OBJ)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue