Skip to content

Commit

Permalink
add encoding string to all files
Browse files Browse the repository at this point in the history
  • Loading branch information
bennr01 committed Jun 5, 2019
1 parent f6b21ac commit fe6adb5
Show file tree
Hide file tree
Showing 147 changed files with 147 additions and 0 deletions.
1 change: 1 addition & 0 deletions __init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# -*- coding: utf-8 -*-
from . import core as stash
1 change: 1 addition & 0 deletions bin/alias.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Example of accessing the shell object from script
# This ability completely removes the need of plugins
"""List or define shell aliases."""
Expand Down
1 change: 1 addition & 0 deletions bin/cat.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Print the contents of the given files.
Expand Down
1 change: 1 addition & 0 deletions bin/cd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Change the current working directory.
Expand Down
1 change: 1 addition & 0 deletions bin/clear.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Clear the stash console output window"""
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/cowsay.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
# by Siddharth Duahantha
# 28 July 2017
Expand Down
1 change: 1 addition & 0 deletions bin/cp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Copy a file or directory. Multiple source files may be specified if the destination is
an existing directory.
"""
Expand Down
1 change: 1 addition & 0 deletions bin/crypt.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
File encryption for stash
Uses AES in CBC mode.
Expand Down
1 change: 1 addition & 0 deletions bin/cut.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Print selected parts of lines from each FILE to standard output.
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/dropbox_setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! python2
# -*- coding: utf-8 -*-
# StaSh utility

"""manage your dropbox configuration."""
Expand Down
1 change: 1 addition & 0 deletions bin/du.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Summarize disk usage of the set of FILEs, recursively for directories.
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/easy_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""a graphical config manager for StaSh"""
import ast
import os
Expand Down
1 change: 1 addition & 0 deletions bin/echo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Print all arguments to stdout, separated by spaces.
Expand Down
1 change: 1 addition & 0 deletions bin/edit.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Used to create/open and edit files.
[-t --temp] - Opens the file as a temporary file. Allowing editing and renaming. Previous script in the pythonista editor will be restored unless a new tab is edited.
Expand Down
1 change: 1 addition & 0 deletions bin/exit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Exit the current subshell, optionally with a specific status. If no
Expand Down
1 change: 1 addition & 0 deletions bin/fg.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Bring a background job to foreground.
"""
Expand Down
1 change: 1 addition & 0 deletions bin/find.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Find files in specified paths
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/ftpserver.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Simple FTP Server"""
from __future__ import print_function
from pyftpdlib.handlers import FTPHandler
Expand Down
1 change: 1 addition & 0 deletions bin/git.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Distributed version control system
Expand Down
1 change: 1 addition & 0 deletions bin/grep.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Search a regular expression pattern in one or more files"""

from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/head.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Print the first 10 lines of the given files.
"""

Expand Down
1 change: 1 addition & 0 deletions bin/httpserver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""Simple HTTP Server With Upload (https://gist.github.com/UniIsland/3346170)
Expand Down
1 change: 1 addition & 0 deletions bin/jobs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
List all jobs that are currently running.
"""
Expand Down
1 change: 1 addition & 0 deletions bin/kill.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Terminate a running job.
"""
Expand Down
1 change: 1 addition & 0 deletions bin/latte.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# A package manager meant for Pythonista, built on StaSh.
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/ls.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""List information about files (the current directory by default)"""
from __future__ import print_function
import os
Expand Down
1 change: 1 addition & 0 deletions bin/mail.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Send messages/files from stash.
Expand Down
1 change: 1 addition & 0 deletions bin/man.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Display help for a command in $STASH_ROOT/bin/ or a topic, or list all commands if no name is given.
"""

Expand Down
1 change: 1 addition & 0 deletions bin/md5sum.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Get md5 hash of a file or string.
Expand Down
1 change: 1 addition & 0 deletions bin/mkdir.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Create a new directory. The parent directory must already exist,
Expand Down
1 change: 1 addition & 0 deletions bin/monkeylord.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""easiliy manage monkey-patches. See 'man monkeypatching' for more help."""
from __future__ import print_function
from mlpatches import patches
Expand Down
1 change: 1 addition & 0 deletions bin/more.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! python2
# -*- coding: utf-8 -*-
# StaSh utility - Dutcho, 16-17 Apr 2017

'''Display output one screen page at a time (optionally with numbered lines)'''
Expand Down
1 change: 1 addition & 0 deletions bin/mount.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""mount a filesystem."""
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/mv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Move (rename) a file or directory to a new name, or into a new
Expand Down
1 change: 1 addition & 0 deletions bin/openin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Open file in an external app.
Expand Down
1 change: 1 addition & 0 deletions bin/pbcopy.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Copy one or more files to the system clipboard"""
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/pbpaste.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Writes the contents of the system clipboard to a file."""
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/ping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python2
# -*- coding: utf-8 -*-

"""
Usage:
Expand Down
1 change: 1 addition & 0 deletions bin/pip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Install and manage python packages
Expand Down
1 change: 1 addition & 0 deletions bin/printenv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""List current environment variables and values.
Expand Down
1 change: 1 addition & 0 deletions bin/printhex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Print the given files' content and hexadecimal byte values.
Expand Down
1 change: 1 addition & 0 deletions bin/pwd.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Print the current working directory.
Expand Down
1 change: 1 addition & 0 deletions bin/python.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Simulates a console call to python [-m module][-c cmd] [file] [args]
Expand Down
1 change: 1 addition & 0 deletions bin/python3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Simulates a console call to python3 [-m module][-c cmd] [file] [args]
Expand Down
1 change: 1 addition & 0 deletions bin/quicklook.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Open file in Quick Look.
Expand Down
1 change: 1 addition & 0 deletions bin/rm.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Remove (delete) files and directories.
Expand Down
1 change: 1 addition & 0 deletions bin/rmdir.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#! python2
# -*- coding: utf-8 -*-
# StaSh utility - Dutcho, 17 Apr 2017

'''Remove empty directory'''
Expand Down
1 change: 1 addition & 0 deletions bin/scp.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Secure Copy - Copy files between local and remote
Expand Down
1 change: 1 addition & 0 deletions bin/sha1sum.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Get sha1 hash of a file or string.
Expand Down
1 change: 1 addition & 0 deletions bin/sha256sum.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Get sha256 hash of a file or string.
Expand Down
1 change: 1 addition & 0 deletions bin/sort.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Sort standard input or given files to standard output"""
from __future__ import print_function
import os
Expand Down
1 change: 1 addition & 0 deletions bin/source.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Read and execute commands from a shell script in the current environment.

Expand Down
1 change: 1 addition & 0 deletions bin/sqlite.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
sqlite3 shell modeled after sqlite3 command-line.
Created by: Chris Houser (Briarfox)
Expand Down
1 change: 1 addition & 0 deletions bin/ssh-keygen.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""
Generates RSA/DSA SSH Keys.

Expand Down
1 change: 1 addition & 0 deletions bin/stashconf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" List and set StaSh configuration options """
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/tail.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Print the last 10 lines of the given files.
"""

Expand Down
1 change: 1 addition & 0 deletions bin/tar.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
'''
Create and extract tar, gzip, bz2 archives.

Expand Down
1 change: 1 addition & 0 deletions bin/totd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Tip of the day
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/touch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# .......

"""Update the modification times of the given files, and create them if
Expand Down
1 change: 1 addition & 0 deletions bin/umount.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""unmount a filesystem."""
from __future__ import print_function
import argparse
Expand Down
1 change: 1 addition & 0 deletions bin/uniq.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Print standard input or files, omitting repeated lines"""
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions bin/unzip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""Extract a zip archive into a directory."""
from __future__ import print_function
import os
Expand Down
1 change: 1 addition & 0 deletions bin/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Show information about this StaSh installation.
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/wc.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Print newline, word, and byte counts for each FILE, and a total line if
more than one FILE is specified.
"""
Expand Down
1 change: 1 addition & 0 deletions bin/wget.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Download a file from a url.
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/whatis.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
# by Siddharth Dushantha
# 31 July 2017
Expand Down
1 change: 1 addition & 0 deletions bin/which.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Locate a command script in BIN_PATH. No output if command is not found.
"""
from __future__ import print_function
Expand Down
1 change: 1 addition & 0 deletions bin/xargs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Construct argument list(s) and execute utility
"""

Expand Down
1 change: 1 addition & 0 deletions bin/zip.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
""" Package and compress (archive) files and directories """
from __future__ import print_function

Expand Down
1 change: 1 addition & 0 deletions getstash.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import shutil
Expand Down
1 change: 1 addition & 0 deletions lib/git/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
1 change: 1 addition & 0 deletions lib/git/diff3.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# ============================================================================
# Copyright (C) 1988, 1989, 1992, 1993, 1994 Free Software Foundation, Inc.
# Copyright (c) 2011-2012 University of Pennsylvania
Expand Down
1 change: 1 addition & 0 deletions lib/git/git-merge.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import print_function

import argparse
Expand Down
1 change: 1 addition & 0 deletions lib/git/gitutils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import sys
import os
import dulwich
Expand Down
1 change: 1 addition & 0 deletions lib/libcompleter.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import os
import json

Expand Down
1 change: 1 addition & 0 deletions lib/libcore.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
import os
import fileinput

Expand Down
1 change: 1 addition & 0 deletions lib/libversion.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
"""version utilities"""
import re
import operator
Expand Down
Loading

0 comments on commit fe6adb5

Please sign in to comment.