Skip to content

Commit 3ba30cb

Browse files
feat(wanda): add artifacts_dir CLI flag
Add -artifacts_dir flag to specify artifact extraction directory. Topic: wanda-artifact-cli Relative: wanda-artifact-copy Labels: draft Signed-off-by: andrew <andrew@anyscale.com>
1 parent a3b19fc commit 3ba30cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

wanda/wanda/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ func main() {
4848
"env_file", "",
4949
"env file for variable expansion; values override OS environment variables",
5050
)
51+
artifactsDir := flag.String(
52+
"artifacts_dir", "",
53+
"base directory for artifact extraction",
54+
)
5155

5256
flag.Usage = func() {
5357
fmt.Fprint(os.Stderr, usage)
@@ -62,6 +66,7 @@ func main() {
6266
*namePrefix = os.Getenv("RAYCI_FORGE_PREFIX")
6367
*rebuild = os.Getenv("RAYCI_WANDA_ALWAYS_REBUILD") == "true"
6468
*envFile = os.Getenv("RAYCI_ENV_FILE")
69+
*artifactsDir = os.Getenv("RAYCI_ARTIFACTS_DIR")
6570

6671
if *epoch == "" {
6772
*epoch = wanda.DefaultCacheEpoch()
@@ -89,6 +94,7 @@ func main() {
8994
Epoch: *epoch,
9095
WandaSpecsFile: *wandaSpecsFile,
9196
EnvFile: *envFile,
97+
ArtifactsDir: *artifactsDir,
9298

9399
RayCI: *rayCI,
94100
Rebuild: *rebuild,

0 commit comments

Comments
 (0)