Commit Graph

510 Commits (2eb4af77974109527e0315bb8d8b07c8d6933380)

Author SHA1 Message Date
Brett 45aeb13dd8 fix SUBCOMMAND action type 2023-09-16 17:49:52 -04:00
Brett 02a1dc1a8c rename help disabler to SUBCOMMAND action type 2023-09-16 17:40:35 -04:00
Brett 9db6dd8456 fix bug with postional args preventing the warning of missing args
add option to print full filename
fix issue with some help printing full filename
2023-09-16 17:22:15 -04:00
Brett 1e293c7dba argparse update
a "janky" solution has been added to the argparse module of BLT.
The new update allows for the creation of "help disablers" which are basically akin to how git operates with
git submodule
git commit
etc
the primary command "git" can have flags (in the case of the tests, --no-color)
while having multiple help disabling sub commands (currently graphics and blt)
everything before the sub command arg will be processed as a primary command flag
everything after the sub command arg will be processed by the sub command arg_parse
this allows for effective namespacing of command modules

TODO:
- Make this as an action?
- cleanup the code
- use a name that makes more sense than "help disabler"
2023-09-16 16:27:48 -04:00
Brett 04cef480bd argparse 2023-09-13 17:29:50 -04:00
Brett 6fc5496c76 remove path test 2023-09-13 16:52:23 -04:00
Brett e2d932ea78 cpu timer 2023-09-13 16:49:56 -04:00
Brett 9e4bfad087 add more features to argparse
can now add git [name] [args] type calls
2023-09-10 15:33:11 -04:00
Brett 215220f98b move defines to c++ 2023-09-07 00:23:13 -04:00
Brett 465f1a4fc8 fix assert not requiring ; at the end 2023-09-07 00:21:02 -04:00
Brett 650af9877f inline some string functions - disable warnings 2023-08-31 21:47:32 -04:00
Brett d3ed46686e add gcount to fs utils 2023-08-25 03:41:43 -04:00
Brett 1b4e36416a make exception API more consistent
blt_throw no longer halts execution
BLT_THROW has been added which throws the exception
2023-08-23 15:26:36 -04:00
Brett 9348207ffb Add exceptions / assertions
Only works for linux / GNU
2023-08-23 15:23:47 -04:00
Brett 34536e2a63 blt::mustache? 2023-08-21 01:03:05 -04:00
Brett bbbf0ba2e5 fix lvalue reference issue with stoi, get_cast now exists 2023-08-18 19:22:12 -04:00
Brett 0e17dff862 update variant access in arg_parse::get 2023-08-18 19:15:21 -04:00
Brett 1d03938f95 SQLite 2023-08-18 02:21:22 -04:00
Brett 6579a3f5cb remove static from random dev 2023-08-17 12:20:59 -04:00
Brett ea986bbc95 only allow uuid.h if openssl is included in parent project 2023-08-17 12:14:59 -04:00
Brett 1e8f431f9e UUID 2023-08-15 19:25:06 -04:00
Brett a3f6757146 Add Crow log handler. Crow now logs with BLT 2023-08-14 22:55:03 -04:00
Brett d1e9d5daef Merge remote-tracking branch 'refs/remotes/origin/main' 2023-08-14 22:50:04 -04:00
Brett 7f9d9bf241 fix issue with blt:logging using non-namespaced log function in macro expansion 2023-08-14 22:49:32 -04:00
Brett 546acf24bb readd fs tests 2023-08-11 13:50:05 -04:00
Brett f78eec792b make contains work with -- - or non flagged checks 2023-08-11 12:10:00 -04:00
Brett b04591fadb no color 2023-08-11 11:27:59 -04:00
Brett e176030868 Merge remote-tracking branch 'github/main' 2023-08-10 02:30:39 -04:00
Brett e68d7aa87f files? 2023-08-10 02:30:09 -04:00
Brett eba9ecb9e5 Merge branch 'main-dev'
Stupid git why tf is it not on a branch
2023-08-09 21:51:33 -04:00
Brett 1c53cd4941 fuck git nothing has changed 2023-08-09 21:51:20 -04:00
Brett 922e356828 update ignore 2023-08-09 21:49:24 -04:00
Brett 04fd3aec8b static, nbt, cassert, algoritmn, get exposed
Basically fix a bunch of stuff that came up in production
2023-08-09 21:48:30 -04:00
Brett a44590c195 add pre/postfix to help 2023-08-08 14:08:03 -04:00
Brett 7e05fb3d60 arg parse should be completely functional!
help works
not all functions have been tested!
2023-08-08 14:06:19 -04:00
Brett 4ae730c9bb remove blt::logging from argparse
use std::cout now as it produces more logical outputs
2023-08-07 22:39:25 -04:00
Brett 2a656a687e use new arg parse + defaults now assigned 2023-08-07 17:42:59 -04:00
Brett b083245ab4 partial rewrite on parsing
- will move new one to replace old one in next commit
- basically the same code but works
- args now support arg_data_t as a default
- arg_data_t is now much smarter
2023-08-07 16:12:43 -04:00
Brett 7bf9cdc19b update version to 0.8.1 2023-08-03 01:51:41 -04:00
Brett ce5df6b497 update ignore 2023-08-03 01:48:48 -04:00
Brett e91c915238 fix logging memory errors 2023-08-03 01:48:24 -04:00
Brett 4a3c03dd5e add -vvv support and add some actions + version 2023-08-02 14:00:11 -04:00
Brett c6cb3c59d4 list consume 2023-08-01 13:58:08 -04:00
Brett a0492df393 args 2023-08-01 13:43:00 -04:00
Brett e702a651df parse names 2023-07-31 13:53:10 -04:00
Brett 620a16574d update hashmap to include hash, eq and alloc 2023-07-30 14:04:59 -04:00
Brett 147c46a1a4 fix cmake lists and move hashmap decl to hashmap.h 2023-07-29 17:41:45 -04:00
Brett 79900dbf1a fix include in NBT 2023-07-29 17:25:11 -04:00
Brett 94e10e7674 fix include in argparse, update cmake version 2023-07-29 17:24:28 -04:00
Brett 0febd6e8aa arg 2023-07-29 14:04:46 -04:00