Compare commits

..

No commits in common. "1b4daa0d7105467bddce18f2c978dbca30067bed" and "8d87c063cdad09fbfab3e0f5a37ff4646384b868" have entirely different histories.

2 changed files with 3 additions and 16 deletions

View file

@ -3,16 +3,6 @@ pip install -r requirements.txt --target="$DIR"
cp -r nginx_configurator "$DIR"
#python3 -m zipapp -p "/bin/python3" -m "nginx_configurator.main:cli" -o ncc "$DIR"
# create entrypoint
cat > "$DIR/ncc" <<EOF
#!/bin/python3
from nginx_configurator import main
main.cli()
EOF
chmod +x "$DIR/ncc"
tar -cf ncc.tar -C "$DIR" .
python3 -m zipapp -p "/bin/python3" -m "nginx_configurator.main:cli" -o ncc "$DIR"
rm -r "$DIR"

View file

@ -252,11 +252,8 @@ def new(ctx):
ctx.invoke(reload)
def shell_complete_service(ctx, param, incomplete):
return [file.name for file in certs.get_site_files(NGINX_DIR) if incomplete in file.name]
@cli.command()
@click.argument("service", shell_complete=shell_complete_service)
@click.argument("service")
@click.pass_context
def edit(ctx, service: str):
"""Edit a service"""
@ -290,7 +287,7 @@ def edit(ctx, service: str):
@cli.command()
@click.argument("service", shell_complete=shell_complete_service)
@click.argument("service")
@click.pass_context
def delete(ctx, service: str):
"""Delete a service"""