-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
53 lines (41 loc) · 1.47 KB
/
justfile
File metadata and controls
53 lines (41 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# justfile for rmq-cli
# Default recipe - list available commands
default:
@just --list
# Build the project
build:
dotnet build
# Run all tests
test:
dotnet test
# Publish native binary for E2E tests and place in designated directory
prepare-e2e-test:
rm -rf test/RmqCli.E2E.Tests/bin/rmq-published
dotnet publish src/RmqCli/RmqCli.csproj -c Release -r osx-arm64 -o test/RmqCli.E2E.Tests/bin/rmq-published
# Build and run tests
check: build test
# Publish native binary (replaces previous build)
publish:
rm -rf release
dotnet publish src/RmqCli/RmqCli.csproj -c Release -r osx-arm64 -o release
# Install rmq as a global dotnet tool
install:
dotnet pack
dotnet tool install -g --source . rmq
# Uninstall rmq global tool
uninstall:
dotnet tool uninstall -g rmq
# Reinstall rmq global tool (uninstall + install)
reinstall: uninstall install
# Run rmq via dotnet run (usage: just run <args>)
# Note that 'just' will flatten the arguments into a single string. This might cause unexpected escaping behaviour. Use the rmq-dev alias to avoid that.
run *args:
@dotnet run --project src/RmqCli/RmqCli.csproj --no-build --no-launch-profile -- {{args}}
# Create alias for running rmq via dotnet run (use: eval $(just create-alias))
create-alias:
@echo "alias rmq-dev='dotnet run --project {{justfile_directory()}}/src/RmqCli/RmqCli.csproj --no-build --no-launch-profile --'"
# Clean build artifacts
clean:
dotnet clean
rm -rf release
rm -rf nupkg