aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-05-19 18:01:38 -0300
committerEuAndreh <eu@euandre.org>2023-05-19 18:01:57 -0300
commit553433cd3d8525d94b6e4dd2b20b8b5df4144401 (patch)
tree418ab18a625d2d1f50ce78910485d78b6dd751e7 /bin
parentetc/guix/home.scm: Add "mb2md" package (diff)
downloaddotfiles-553433cd3d8525d94b6e4dd2b20b8b5df4144401.tar.gz
dotfiles-553433cd3d8525d94b6e4dd2b20b8b5df4144401.tar.xz
bin/uninclude: Add example for Python files
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uninclude5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/uninclude b/bin/uninclude
index ac2d98c..812f51b 100755
--- a/bin/uninclude
+++ b/bin/uninclude
@@ -32,6 +32,11 @@ help() {
$ find lib.c main.c | uninclude -E '^#include ' -- cc $CFLAGS
lib.c: 3 lines unincluded
main.c: nothing to uninclude
+
+
+ Remove all non-required "imports" from all files that ends with ".py":
+
+ $ git ls-files | grep '\.py$' | uninclude '^import ' -- pytest
EOF
}