Skip to content

Tool for managing vendor file and in-place transformations

License

Notifications You must be signed in to change notification settings

phogolabs/strava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strava

A command line tool based on go-getter from hashicorp. That allows downloading file by providing a configuration file.

Getting Started

You can download all source into the given vendor directories by running:

$ strava vendor

An example of strava.yaml:

---
vendor:
- name: sdk/google/api
  source:
   - https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto
   - https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/resource.proto
   - https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/field_behavior.proto
   - https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto
   - https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/httpbody.proto
   - https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/client.proto

- name: sdk/protoc-gen-openapiv2/options
  source:
  - https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-openapiv2/options/annotations.proto
  - https://raw.githubusercontent.com/grpc-ecosystem/grpc-gateway/master/protoc-gen-openapiv2/options/openapiv2.proto

transform:
- name: sdk/publication.swagger.json
  rules:
  - regexp: cliche.publication.sdk.

  - regexp: google.protobuf.Any
    value: Any

  - regexp: google.rpc.Status
    value: Error

About

Tool for managing vendor file and in-place transformations

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages