From 185b30486879e6e2d0c96e7bd57a2cc57ab3eba6 Mon Sep 17 00:00:00 2001 From: cswimr Date: Fri, 22 Nov 2024 09:52:38 -0500 Subject: [PATCH] add `.py` file extension to the script files so they get proper syntax highlighting --- scripts/{spectacle-screenshot => spectacle-screenshot.py} | 6 +++--- scripts/{zipline => zipline.py} | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename scripts/{spectacle-screenshot => spectacle-screenshot.py} (96%) rename scripts/{zipline => zipline.py} (97%) diff --git a/scripts/spectacle-screenshot b/scripts/spectacle-screenshot.py similarity index 96% rename from scripts/spectacle-screenshot rename to scripts/spectacle-screenshot.py index 80e1ff2..85fd180 100755 --- a/scripts/spectacle-screenshot +++ b/scripts/spectacle-screenshot.py @@ -62,7 +62,7 @@ def spectacle_screenshot( try: opts = [ - "/etc/nixos/scripts/zipline", + "/etc/nixos/scripts/zipline.py", file_path, "--application-name", "Spectacle", @@ -89,9 +89,9 @@ def spectacle_screenshot( if __name__ == "__main__": parser = argparse.ArgumentParser( - prog="spectacle-screenshot", + prog="spectacle-screenshot.py", description="Take a screenshot or recording with Spectacle and automatically upload it to a Zipline instance.", - epilog="Example usage: spectacle-screenshot", + epilog="Example usage: spectacle-screenshot.py", ) parser.add_argument( "--url", diff --git a/scripts/zipline b/scripts/zipline.py similarity index 97% rename from scripts/zipline rename to scripts/zipline.py index 227bf89..cae12c7 100755 --- a/scripts/zipline +++ b/scripts/zipline.py @@ -105,9 +105,9 @@ def zipline( if __name__ == "__main__": parser = argparse.ArgumentParser( - prog="zipline", + prog="zipline.py", description="Upload a file to a Zipline instance.", - epilog="Example usage: zipline /path/to/file.txt", + epilog="Example usage: zipline.py /path/to/file.txt", ) parser.add_argument("file", help="The file to upload.") parser.add_argument(