Clean up function names a little

This commit is contained in:
Veronica Berglyd Olsen
2025-01-16 22:19:58 +01:00
parent aabc21d611
commit d7730e9b04
3 changed files with 6 additions and 14 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ from utils.common import (
)
def main(args: argparse.Namespace) -> None:
def appImage(args: argparse.Namespace) -> None:
"""Build an AppImage."""
try:
import python_appimage # noqa: F401 # type: ignore
+2 -10
View File
@@ -155,11 +155,7 @@ def makeDebianPackage(
return ""
##
# Build Debian Package (build-deb)
##
def mainDebian(args: argparse.Namespace) -> None:
def debian(args: argparse.Namespace) -> None:
"""Build a .deb package"""
if sys.platform == "linux":
print("ERROR: Command 'build-deb' can only be used on Linux")
@@ -169,11 +165,7 @@ def mainDebian(args: argparse.Namespace) -> None:
return
##
# Build Launchpad Packages (build-ubuntu)
##
def mainLaunchpad(args: argparse.Namespace) -> None:
def launchpad(args: argparse.Namespace) -> None:
"""Wrapper for building Debian packages for Launchpad."""
if sys.platform == "linux":
print("ERROR: Command 'build-ubuntu' can only be used on Linux")