tlog
shfmt
tlog | shfmt | |
---|---|---|
4 | 10 | |
296 | 26 | |
1.7% | - | |
5.2 | 10.0 | |
3 months ago | about 5 years ago | |
C | Makefile | |
GNU General Public License v3.0 only | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tlog
-
Help with installing tlog on Debian 10
https://salsa.debian.org/ascii/tlog/-/tree/debian/latest https://github.com/Scribery/tlog
- How to log bash commands in some simple way?
- Tlog: Terminal I/O Logger
-
Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks
Enterprises that requires logging of user actions will very likely not being doing it at the shell level, either through compiled in options, or shell history.
Instead, the Kernel has built in functionality called Auditd[0], which is capable of logging any and all executions, file or socket accesses, and much more. Along with included tooling for quickly finding and alerting on events[3].
Further, if terminal logging or playback is really required (usually not), it's generally done through pam with tlog[1]. Red Hat 8 and above come with built-in tlog support[2].
[0] https://access.redhat.com/documentation/en-us/red_hat_enterp...
[1] https://github.com/Scribery/tlog/blob/main/README.md
[2] https://access.redhat.com/documentation/en-us/red_hat_enterp...
[3] https://wiki.archlinux.org/title/Audit_framework
shfmt
-
Go Run
Are you assuming that based on visiting the vanity import path in a browser?
https://github.com/mvdan/sh is the repo looks like v3.8.0 was released 2 weeks ago.
- FLiP Stack Weekly for 13-Feb-2023
- new user trying to learn what am i doing wrong?
-
Production pipelines are tested in production
For shell specifically, ShellCheck and Shfmt are great.
- Bash-Oneliner: A collection of handy Bash One-Liners and terminal tricks
-
How common are code bases where 90% of functions have the same signature?
I haven't worked in, like, a ton of Go code bases, but I've worked in several (work, my own code, Gio UI, github.com/mvdan/sh, some others), and I've never seen this pattern that extensively. It does seem like something of an antipattern.
-
Ask HN: Let's Build CheckStyle for Bash?
- sh: https://github.com/mvdan/sh
-
Autofix missing spaces for test operators in bash
I guess what you're asking is to automatically format on save. There's https://github.com/mvdan/sh, which between other things, is a shell formatter. I don't know what you're using but shfmt is available in the repos of some linux distros.
- s/bash/zsh/g
-
Code formatter, linters, etc. Recommendations?
There is shellcheck, and shellharden which is a strict version of it. There are similar stuff here, some that also help with your editor. You can also use a docker version of shfmt. See here for a quick tutorial on shfmt.
What are some alternatives?
trice - 🟢 super fast 🚀 and tiny 🐥 embedded device 𝘾 printf-like trace ✍ code, works also inside ⚡ interrupts ⚡ and real-time PC 💻 logging (trace ID visualization 👀)
ShellCheck - ShellCheck, a static analysis tool for shell scripts
snoopy - Snoopy Command Logger is a small library that logs all program executions on your Linux/BSD system.
shellharden - The corrective bash syntax highlighter
fgprof - 🚀 fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together.
neoformat - :sparkles: A (Neo)vim plugin for formatting code.
bash-preexec - ⚡ preexec and precmd functions for Bash just like Zsh.
bash-timestamping-sqlite - bash commandline timestamping using a sqlite database for personal analytics, activity logging and auditing
cassette_deck - 🖭 CLI gif recorder, simplified
zplug - :hibiscus: A next-generation plugin manager for zsh
vscode-bash-debug - Bash shell debugger extension for VSCode (based on bashdb)
volta - Volta: JS Toolchains as Code. ⚡