aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-02-25 20:19:49 +0100
committerMattias Andrée <m@maandree.se>2025-02-25 20:19:49 +0100
commit3e94681df57f2756e906a39ef79b05ef3c2d50c5 (patch)
tree6c4c92004c82ab948aea73659ff78504961302c7 /src
parentRemove dist (diff)
downloadauto-auto-complete-3e94681df57f2756e906a39ef79b05ef3c2d50c5.tar.gz
auto-auto-complete-3e94681df57f2756e906a39ef79b05ef3c2d50c5.tar.bz2
auto-auto-complete-3e94681df57f2756e906a39ef79b05ef3c2d50c5.tar.xz
Change license, clean up file structure, remove info manual and extend man page, and simplify makefile
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rwxr-xr-xauto-auto-complete (renamed from src/auto-auto-complete.py)33
-rw-r--r--completion (renamed from src/completion)1
2 files changed, 7 insertions, 27 deletions
diff --git a/src/auto-auto-complete.py b/auto-auto-complete
index 33d0521..4f32f86 100755
--- a/src/auto-auto-complete.py
+++ b/auto-auto-complete
@@ -1,30 +1,12 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-'''
-auto-auto-complete – Autogenerate shell auto-completion scripts
-
-Copyright © 2012, 2013, 2014, 2015 Mattias Andrée (m@maandree.se)
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 3 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-'''
+# See LICENSE file for copyright and license details.
import sys
def print(text = '', end = '\n'):
'''
- Hack to enforce UTF-8 in output (in the future, if you see anypony not using utf-8 in
- programs by default, report them to Princess Celestia so she can banish them to the moon)
+ Hack to enforce UTF-8 in output
@param text:str The text to print (empty string is default)
@param end:str The appendix to the text to print (line breaking is default)
@@ -832,7 +814,7 @@ class GeneratorZSH:
def main(shell, output, source):
'''
- mane!
+ main!
@param shell:str Shell for which to generate completion
@param output:str Output file
@@ -897,7 +879,7 @@ def main(shell, output, source):
def where_main(shell, command):
'''
- --where mane!
+ --where main!
@param shell:str Shell for which the completion should be installed
@param command:str The commmad name
@@ -910,11 +892,11 @@ def where_main(shell, command):
-# supermane!
+# supermain!
if __name__ == '__main__':
if (len(sys.argv) == 1) or ((len(sys.argv) == 2) and (sys.argv[1] in ('-h', '--help'))):
- print("USAGE: auto-auto-complete SHELL --output OUTPUT_FILE --source SOURCE_FILE [VARIABLE=VALUE...]")
- print(" or: auto-auto-complete SHELL --where COMMAND")
+ print("USAGE: auto-auto-complete shell --output output-file --source source-file [variable=value] ...")
+ print(" or: auto-auto-complete shell --where command")
exit(2)
shell = None
@@ -969,4 +951,3 @@ if __name__ == '__main__':
main(shell= shell, output= output, source= source)
else:
where_main(shell= shell, command= where)
-
diff --git a/src/completion b/completion
index 7e5da65..1afbb31 100644
--- a/src/completion
+++ b/completion
@@ -22,4 +22,3 @@
(suggestion default (verbatim bash zsh fish VARIABLE=VALUE))
)
-