Functions | |
def | add_headers (directories, file_types, cchar="!", author="Rohit Goswami <rgoswami[at]ieee.org>", repository_url="https://github.com/HaoZeke/GaussJacobiQuad", library_name="GaussJacobiQuad", date=current_date, commit=commit_hash) |
Variables | |
GITROOT = os.popen("git rev-parse --show-toplevel").read().strip() | |
current_date = datetime.now().strftime("%Y-%m-%d") | |
commit_hash = os.popen("git rev-parse HEAD").read().strip()[:7] | |
header_template | |
parser = argparse.ArgumentParser(description="Add headers to source files.") | |
type | |
str | |
required | |
True | |
nargs | |
help | |
args = parser.parse_args() | |
file_types = args.ftypes.split(",") | |
def add_headers.add_headers | ( | directories, | |
file_types, | |||
cchar = "!" , |
|||
author = "Rohit Goswami <rgoswami[at]ieee.org>" , |
|||
repository_url = "https://github.com/HaoZeke/GaussJacobiQuad" , |
|||
library_name = "GaussJacobiQuad" , |
|||
date = current_date , |
|||
commit = commit_hash |
|||
) |
Definition at line 44 of file add_headers.py.
add_headers.args = parser.parse_args() |
Definition at line 103 of file add_headers.py.
add_headers.commit_hash = os.popen("git rev-parse HEAD").read().strip()[:7] |
Definition at line 17 of file add_headers.py.
add_headers.current_date = datetime.now().strftime("%Y-%m-%d") |
Definition at line 14 of file add_headers.py.
add_headers.file_types = args.ftypes.split(",") |
Definition at line 104 of file add_headers.py.
add_headers.GITROOT = os.popen("git rev-parse --show-toplevel").read().strip() |
Definition at line 11 of file add_headers.py.
add_headers.header_template |
Definition at line 20 of file add_headers.py.
add_headers.help |
Definition at line 93 of file add_headers.py.
add_headers.nargs |
Definition at line 93 of file add_headers.py.
add_headers.parser = argparse.ArgumentParser(description="Add headers to source files.") |
Definition at line 91 of file add_headers.py.
add_headers.required |
Definition at line 93 of file add_headers.py.
add_headers.str |
Definition at line 93 of file add_headers.py.
add_headers.True |
Definition at line 93 of file add_headers.py.
add_headers.type |
Definition at line 93 of file add_headers.py.