adding fmt third_party library + adding cloc support
This commit is contained in:
@@ -96,6 +96,13 @@ class DevCommand(GiteaCommand, RenderDocCommand, ShadersCommand, TracyCommand):
|
||||
|
||||
# Custom helpers
|
||||
|
||||
##
|
||||
# Counts lines of code from the project root, skipping paths listed in
|
||||
# .clocignore. Any arguments are passed through to cloc.
|
||||
# dev cloc [args...]
|
||||
def cloc(self, *args, **kwargs):
|
||||
self._run_in_root(["cloc", "--exclude-list-file=.clocignore", *args, "."])
|
||||
|
||||
def ownit(self, *args, **kwargs):
|
||||
file_or_directory = args[0] if args else None
|
||||
if file_or_directory is None:
|
||||
|
||||
Reference in New Issue
Block a user