754 Commits (f173a63c6d503f0e5d98cece6eb94577308c9d1d)
 

Author SHA1 Message Date
Igor Chubin 2321ec7b43 Fix comment lenth in sheets/sysrq-trigger 4 years ago
Igor Chubin 827f498778
Merge pull request #135 from terminalforlife/master
Allow in-file disabling of lenchk (#134)
4 years ago
terminalforlife 2e8aee7eeb Fix line length of taste & tweak it slightly 4 years ago
terminalforlife a3f21c156d Fix line length of wacaw 4 years ago
terminalforlife 442e7e2f93 Fix line length of http 4 years ago
terminalforlife 1223da5389 Fix line length of doas & slightly tweak 4 years ago
terminalforlife dce972441d Fix line length of launchctl 4 years ago
terminalforlife 4225af3a91 Fix line length of systemd-sysvinit -- overhaul
To whomever wrote this originally: please check I didn't acidentally
order something in the wrong place. Awesome cheat sheet, by the way.

I did away with the table format as it just wasn't going to work
properly in keeping with the line length limit of 80.
4 years ago
terminalforlife eff4e22ee3 Fix line length of umask 4 years ago
terminalforlife c69c73059d Fix line length of xfs_repair 4 years ago
terminalforlife c42bd33f46 Fix line length of xm 4 years ago
terminalforlife 2c4bcb2b39 Fix line length of ObjectOrientation 4 years ago
terminalforlife 5970584c88 Fix line length of PatternMatching 4 years ago
terminalforlife 2ece746c3a Address recursion line length (slight reword) 4 years ago
terminalforlife aea321e9f0 Fix line length of types (tidied up table) 4 years ago
terminalforlife a461a0c912 Hush `cd`, just in-case we get noise 4 years ago
terminalforlife acebbe0d67 No longer need to be in 'tests' directory
Your BASH version is checked; if it's 3, you will have to ignore this
commit, unfortunately. To be fair, if you're on 3 (major), you have
more pressing matters. :P
4 years ago
terminalforlife 380b52688d Colorize by default, now that we're portable
This can still be disabled, though.
4 years ago
terminalforlife edf22b3dd9 Colorization is now portable, thanks to tput(1) 4 years ago
terminalforlife 9191dafe36 Add ability to ignore the special lenchk line 4 years ago
terminalforlife a5ac924841 Allow in-file disabling of lenchk (#134) 4 years ago
Igor Chubin 5b98860f73
Merge pull request #134 from terminalforlife/master 4 years ago
terminalforlife a7dbcd06d7 Handle user's own provided directories 4 years ago
terminalforlife 1e7c9ae57e Use more(1) as a fallback for paging 4 years ago
terminalforlife 66a38b7196 Tighten Main(), and use pager by default
The use of `[ -t 1 ]` won't check for interactivity, rather, whether
STDOUT is viable? If so, it might be best to check the `$-` variable
(I think that's it) for the `i` character, like the standard default
Debian `.bashrc` interactivity checks. Or, my preference, check the
`$PS1` is not empty, which works well in my own `.bashrc` file.

The `Main()` function was spread a bit too far, but is now more
appropriate; has no real impact, just clarify when reading.

Although the use of less(1) pager is enabled by default, it can be
disabled now with the `--no-pager|-P` flags.
4 years ago
terminalforlife 17454dc8f4 Add whitelisting functionality
We can now specify our own whitelisting file, overriding the default of
'lenchk-excludes' which must stay in the same directory as lenchk, at
least for now. The custom file can be wherever you want it, however.

I'd like to use the `readarray`/`mapfile` BASH built-in for populating
the array variable, but it didn't seem to want to work, so I just went
for another `while read` loop. It's working very nicely as-is, though.

I've changed the required whitelist format to one of simplicity: one
filename per line. Why the previous format? Because of files which may
have a newline character in them, but I realised in this environment
that's just not going to happen; force of habit, I guess.

I'd like to allow users to be able to whitelist entire directories, but
I don't see that being so high on the priority list, for now.

What do you think?
4 years ago
terminalforlife 6ef4f6e9fc Add option to ignore 'sheets/*/*' subdirectories 4 years ago
terminalforlife 2bc31bd7dc Address less-related bug regarding summary 4 years ago
Igor Chubin 81f234e0eb
Merge pull request #133 from terminalforlife/master
Add lenchk (tester to replace max_length)
4 years ago
terminalforlife 6de63e8df8 Correct spelling errors (duh!) 4 years ago
terminalforlife 9bd8c37f8a Correct Err() instance (wrong directory name) 4 years ago
terminalforlife fa546de881 Add lenchk (max_length functionality, and some)
Hope this helps. I wish I'd known this is what you were after, but I
guess it didn't click! This is an area I love and excel at, so I
hoped to put that to use here.

* The colorization flag might help when there are a lot of results.

* By far, the indented line number and preview of the offending lines
  is the most useful aspect of lenchk, making it much easier to track
  down troublesome lines, especially for the inexperienced.

* I've accounted for `//` lines (C languages), although some like
  Javascript, HTML, and CSS I've yet to get around to.

* There's a summary, which is probably pointless, but it might help to
  keep track of our progress in getting through the files.

* It's ever-so-slightly more efficient and portable, but ultimately, -
  I'd say making it use just /bin/sh would be better, but Bash is
  pretty common-place these days, and has features which make lenchk
  much cleaner.

  Ideally, I'd have written this in Perl, due to the limited lifespan
  of this tester, because a shell can only handle so much data before
  it starts to chug. I figured, however, that not everyone will have
  Perl.

If this commit isn't accepted, no worries, as I'm sure I can repurpose
it for use elsewhere.

Want it, but have issues? Let me know, and I'll get on that ASAP.

Note that I've removed max_length in this commit, to avoid confusion.
4 years ago
Igor Chubin 2abb75a33f
Merge pull request #131 from MFTabriz/master
add another example to ch-run
4 years ago
Igor Chubin f058d7d647
Merge pull request #132 from MFTabriz/patch-1
add link to the issue page
4 years ago
Meisam 8a7db69085
add link to the issue page 4 years ago
mtabriz eabd18aa74 fix the style 4 years ago
mtabriz 8e07a37f7d add another example to ch-run 4 years ago
Igor Chubin 86baa0e06c
Extend cheat sheet format dscription 4 years ago
Igor Chubin 3c79257969
Update simple curl call description 4 years ago
Igor Chubin fd0cb41bcd
Merge pull request #129 from chubin/tests
Add tests/max-length
4 years ago
Igor Chubin dd8d8307e5
Merge pull request #130 from terminalforlife/master
New File, New Examples, and Some Code/Comment Tweaks
4 years ago
terminalforlife e380f4eeb5 Add read sheet + 2 examples
I realise it's a built-in, and that its operation can wildly differ,
depending on the shell used, which is why I've added that the sheet is
for the Bash built-in. I'm not sure how this project handles multiple
different tools by the same name; worth looking into, @chubin?
4 years ago
terminalforlife 98dd514d7b Add important policies tip for udisksctl
Without knowledge of this, people trying out an Ubuntu- or Debian-based
distribution will be frustrated when trying to use udisksctl(1). I ran
into this situation myself, so discovering this was a relief.
4 years ago
terminalforlife a559fd580f Add variable spacing example to printf 4 years ago
terminalforlife 8576445e17 Improve wording & code readability of xargs
I've also un-squished flags & their arguments to avoid confusion.
4 years ago
terminalforlife ac2480bca9 Bring consistency of formatting to ch-* sheets 4 years ago
terminalforlife bb5e860c01 Add cdparanoia sheet + an example 4 years ago
Igor Chubin 3f5b5264ea Add tests/max-length 4 years ago
Igor Chubin 592eef7e29
Merge pull request #128 from MFTabriz/master
add basic Charliecloud commands
4 years ago
mtabriz b7e75f1271 enforce 80char max line length
misc. cleanup
4 years ago