Drake
9921ad5cff
all: change main funcs to respectively named ones
...
first big change to help with moving to a single binary :)
3 years ago
Drake
2f14fffd5c
All: add license comment.
...
also: change ansi implementation to be slightly less copyright-infringing.
3 years ago
Drake
11d32b9dfb
All: add newline to version output.
...
goddammit, i apparently missed a bunch of stuff after some of the reforms i've done.
3 years ago
Drake
1ee035fe27
All: run `clang-format` on code and makefile.
...
C source files use LLVM style, Makefile uses Google style.
3 years ago
Drake
d97207065f
All: remove uneeded imports, according to include-what-you-use.
...
see https://github.com/include-what-you-use/include-what-you-use for more info on iwyu.
3 years ago
Drake
23bc854b51
`whoami`: revert "`whoami`: misc improvements, including...".
...
This reverts commit 8a2afdc33a
.
so apparently `getlogin()` returns the user the process is running under, and when it is called when you are in a sudoed bash, it returns the login username instead of root.
as you may be able to guess, that is not exactly intended behaviour.
3 years ago
Drake
0a059278c7
All: switch version declaration using header to makefile.
...
makes imports a little cleaner
3 years ago
Drake
87a07a5dc2
all (but `yes`): re-add `\n`s to new `printf()`s
...
okay so apparently they're needed
3 years ago
Drake
01f7d53d15
all (but `yes`): use printf formatting
...
clang no longer complains!
3 years ago
Drake
09e94c66ee
`whoami`: remove uneeded lengthy typecast(?).
3 years ago
Drake
8a2afdc33a
`whoami`: misc improvements, including...
...
switching to `getlogin();` as the username fetcher (fun fact: i was messing with an ai (*not github copilot*), and it made this. i am mad that it made better code than me)
3 years ago
Drake
2bd11f8548
all: update help messages
...
previously help messages showed `--version` was "WIP", which it is no-longer
3 years ago
Drake
f3f2e772df
all: add universal version
...
instead of having a placeholder version command, it is now read from a #define in `lib/version.h`
3 years ago
Drake
7e8821908c
Add missing string.h includes in whoami and arch
3 years ago
Drake
db9061fbbf
Initial commit
...
Currently includes a (feature-complete?) version of `whoami` and `id`.
3 years ago