mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
12 lines
458 B
Bash
12 lines
458 B
Bash
#!/bin/bash
|
|
# Update all imports from github.com/luxfi/cli/ to github.com/luxfi/cli/v2/
|
|
|
|
echo "Updating CLI imports to v2..."
|
|
|
|
# Find all Go files and update imports
|
|
find . -name "*.go" -type f -not -path "./vendor/*" -not -path "./.git/*" | while read -r file; do
|
|
# Update imports from github.com/luxfi/cli/ to github.com/luxfi/cli/v2/
|
|
sed -i '' 's|"github.com/luxfi/cli/|"github.com/luxfi/cli/v2/|g' "$file"
|
|
done
|
|
|
|
echo "CLI import update complete!" |