Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove registry related code from the cli #590

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 38 additions & 37 deletions agentclient/mocks/mocks.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 8 additions & 3 deletions bin/mockgen
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ srcFiles=(
deployment/disk/Disk,Manager
deployment/vm/ManagerFactory
deployment/release/JobResolver
registry/Server,ServerManager
release/Manager,Extractor
state/job/DependencyCompiler
state/pkg/Compiler,CompiledPackageRepo
Expand All @@ -38,8 +37,14 @@ for srcFile in ${srcFiles[*]}; do
mkdir -p $srcDir/mocks
echo mockgen -package mocks -destination $destFile $rootPackage/$package $class
mockgen -package mocks -destination $destFile $rootPackage/$package $class
sed -i "" -e "s%github.com/cloudfoundry/bosh-cli/vendor/%%" $destFile
$bin/go fmt $destFile
if [[ "$(uname)" == "Linux" ]]; then
#gnu sed
sed -i "$destFile" -e "s%github.com/cloudfoundry/bosh-cli/vendor/%%"
else
#osx bsd sed
sed -i "" -e "s%github.com/cloudfoundry/bosh-cli/vendor/%%" $destFile
fi
go fmt $destFil
done


Expand Down
Loading