Skip to content

Commit

Permalink
Run awk before grep in the attach recipe (#1935)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored May 1, 2023
1 parent 231d186 commit d374e24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ recreate:
logs services="" args=(if IS_CI != "" { "" } else { "-f" }):
just dc logs {{ args }} {{ services }}
# Attach to the specificed `service`. Enables interacting with the TTY of the running service.
# Attach to the specificed service to interacting with its TTY
attach service:
docker attach $(docker-compose ps | grep {{ service }} | awk '{print $1}')
docker attach $(just dc ps | awk '{print $1}' | grep {{ service }})
# Execute statement in service containers using Docker Compose
exec +args:
Expand Down

0 comments on commit d374e24

Please sign in to comment.