mirror of
https://github.com/shadoll/just-commons.git
synced 2025-12-20 03:26:43 +00:00
Refactor: Remove unnecessary [group] annotations from management scripts
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
# Universal container management operations
|
||||
|
||||
# Start service (or all services if no service specified)
|
||||
[group('container')]
|
||||
start service="" compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -27,7 +26,6 @@ start service="" compose-file="":
|
||||
fi
|
||||
|
||||
# Stop service (or all services if no service specified)
|
||||
[group('container')]
|
||||
stop service="" compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -53,7 +51,6 @@ stop service="" compose-file="":
|
||||
fi
|
||||
|
||||
# Restart service (or all services if no service specified)
|
||||
[group('container')]
|
||||
restart service="" compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -78,7 +75,6 @@ restart service="" compose-file="":
|
||||
fi
|
||||
|
||||
# Show service status (specific service or all)
|
||||
[group('container')]
|
||||
status service="" compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -102,7 +98,6 @@ status service="" compose-file="":
|
||||
fi
|
||||
|
||||
# View logs for specific service or all services
|
||||
[group('container')]
|
||||
logs service="" compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -126,7 +121,6 @@ logs service="" compose-file="":
|
||||
fi
|
||||
|
||||
# Open shell in specific container
|
||||
[group('container')]
|
||||
shell service compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
@@ -145,7 +139,6 @@ shell service compose-file="":
|
||||
$compose_cmd $file_arg exec "$service" /bin/bash
|
||||
|
||||
# Execute command in specific service container
|
||||
[group('container')]
|
||||
exec service cmd compose-file="":
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
Reference in New Issue
Block a user