We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c283c1 commit ca246d8Copy full SHA for ca246d8
codapi-cli
@@ -57,6 +57,12 @@ do_sandbox_add() {
57
exit 1
58
fi
59
60
+ # 0. Check if the path a package name.
61
+ if [[ "$path" =~ ^[a-zA-Z0-9_-]*$ ]]; then
62
+ # This is a package name, so we need to download it from the registry.
63
+ path="https://github.com/nalgeon/sandboxes/releases/download/latest/$path.tar.gz"
64
+ fi
65
+
66
# 1. Set the name of the sandbox.
67
local filename
68
filename=$(basename "$path")
0 commit comments