* lang: Adding Oz programming language
* Cleaning the design
* Colorizing a missing white
* make oz logo more symetrical
* fix
* fix
---------
Co-authored-by: o2sh <ossama-hjaji@live.fr>
* Update languages.yaml
Add arduino language support, since arduino is basically cpp, the chip refers to cpp.
* Fix `chip` value
* Shrink the ASCII art
Shrink the ASCII art to make the linter happy...
* Revert "Shrink the ASCII art" and fix whitespace
The ASCII art was mostly fine besides the trailing whitespace, and
didn't need to be shrunk further.
This reverts commit 161baa4afe.
* o2sh's ASCII edit
Cleaner than mine ASCII art made by o2sh.
---------
Co-authored-by: Spenser Black <spenserblack01@gmail.com>
* Add GLSL language support #490
Logo is a mash-up of OpenGL and OpenGL ES logos.
All tests pass.
* Adjust GLSL ASCII art
Slight changes based on cleaned-up logo by @o2sh
https://github.com/o2sh/onefetch/pull/824#discussion_r1106486998
---------
Co-authored-by: Spenser Black <spenserblack01@gmail.com>
* Conditionally count lines based on language type
This allows an optional definition of the line type for a language. If
it is defined, it will sum them together. Defaults to using `.code`.
Fixes#933
* Simplify name of LOC counting function
"compile" is a bit of a misnomer, since it's related to any compilation,
but merely counts the number of lines of code for a language.
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
* Reduce clutter of output `loc` function
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
* Use templated `loc` function for total LOC
* Remove reference to tokei from languages file
This references internal logic, and is unnecessarily wordy. Instead,
this field is now described in CONTRIBUTING to explain what it is and
what values it can take.
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
* Add unit test for `get_total_loc`
* Recursively count code stats LOC
* Unset line types for Jupyter Notebooks
All lines are counted from the language's children.
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
* Remove unnecessary recursion
`.summarise()` accomplishes what recursion was doing.
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
* Refactor to make templated functions private
This adds public wrapper functions to the templated functions and makes
them private. This makes it so as much code is in actual Rust code, and
leaves the template to only manage the repetitive code.
* Add Jupyter total LOC test
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
* feat: makefile support
* chore: align makefile section in languages by alphabet
* chore: colorize makefile gnu
* refactor: match linguist color entry for Makefile
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>
Co-authored-by: Ossama Hjaji <ossama-hjaji@live.fr>