yait

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b419d05e1088ff699add51adfb2505a974ee6c0d
parent 124a0f597bab3017ac7aa7c72183d5f9b1c39451
Author: vx-clutch <[email protected]>
Date:   Thu,  9 Oct 2025 22:04:43 -0400

save

Diffstat:
MTODO | 1+
Abuild.tmp | 1+
Msrc/yait.c | 6+++++-
Atools/generate-artifacts | 4++++
4 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/TODO b/TODO @@ -4,5 +4,6 @@ Todo: * Fix package.c generation * Add git integration: git init, add the gcklib submodule, ./gcklib-tool --import proginfo + * -x: for shell end of file TODO diff --git a/build.tmp b/build.tmp @@ -0,0 +1 @@ +[] diff --git a/src/yait.c b/src/yait.c @@ -111,13 +111,14 @@ int main(int argc, char **argv) bool quiet = false; bool force = false; bool editor = false; + bool shell = false; char *author = get_name(); int year = get_year(); licence_t licence = BSD; parse_standard_options(argc, argv, print_help, print_version); - while ((optc = getopt_long(argc, argv, "a:l:Eqf", longopts, NULL)) != + while ((optc = getopt_long(argc, argv, "a:l:Eqfx", longopts, NULL)) != -1) switch (optc) { case 'a': @@ -154,6 +155,9 @@ int main(int argc, char **argv) case 'f': force = true; break; + case 'x': + shell = true; + break; default: lose = 1; } diff --git a/tools/generate-artifacts b/tools/generate-artifacts @@ -0,0 +1,4 @@ +#!/bin/sh + +mkdir -p build +bear --output build/compile_commands.json -- make