Add simple wrapper around python-slugify
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
17333daedc
commit
5927c7dcbc
1 changed files with 12 additions and 0 deletions
12
bin/slugify
Executable file
12
bin/slugify
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from slugify import slugify
|
||||
import sys
|
||||
|
||||
def main(args):
|
||||
print slugify(' '.join(args))
|
||||
|
||||
return 0
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.exit(main(sys.argv[1:]))
|
Loading…
Reference in a new issue