◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
10 changes: 8 additions & 2 deletions cli/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.PHONY: go

build-all:
@$(MAKE) cli-linux cli-darwin
Expand All @@ -8,10 +10,14 @@ cli-linux:
mkdir -p bin
export GOOS=linux; \
export GOARCH=amd64; \
mkdir -p bin/$$GOOS-$$GOARCH && go build -o bin/$$GOOS-$$GOARCH/feast feast/main.go

.PHONY: cli-darwin
cli-darwin:
export GOOS=darwin; \
export GOARCH=amd64; \
mkdir -p bin/$$GOOS-$$GOARCH && go build -o bin/$$GOOS-$$GOARCH/feast feast/main.go
2 changes: 1 addition & 1 deletion cli/feast/cmd/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"path/filepath"

"github.com/gojektech/feast/cli/feast/pkg/parse"
"github.com/gojektech/feast/go-feast-proto/feast/core"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/feast/cmd/jobs.go
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ import (

"github.com/gojektech/feast/cli/feast/pkg/parse"
"github.com/gojektech/feast/cli/feast/pkg/printer"
"github.com/gojektech/feast/go-feast-proto/feast/core"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/feast/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"text/tabwriter"

"github.com/gojektech/feast/cli/feast/pkg/util"
"github.com/gojektech/feast/go-feast-proto/feast/core"

"github.com/golang/protobuf/ptypes/empty"
"github.com/spf13/cobra"
Expand Down
10 changes: 8 additions & 2 deletions cli/feast/cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,22 @@ import (
"github.com/spf13/cobra"
)

var version = "0.3.0"

var versionCmd = &cobra.Command{
Use: "version",
Short: "feast cli version",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("CLI version: %s\n", version)
},
}

func init() {
rootCmd.AddCommand(versionCmd)
}
8 changes: 7 additions & 1 deletion cli/feast/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@

package main

import "github.com/gojektech/feast/cli/feast/cmd"

func main() {
cmd.Execute()
}
4 changes: 2 additions & 2 deletions cli/feast/pkg/parse/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

"github.com/ghodss/yaml"

"github.com/gojektech/feast/go-feast-proto/feast/specs"
"github.com/gojektech/feast/go-feast-proto/feast/types"
)

// YamlToFeatureSpec parses the given yaml and outputs the corresponding
Expand Down
4 changes: 2 additions & 2 deletions cli/feast/pkg/parse/yaml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"github.com/golang/protobuf/ptypes/timestamp"

"github.com/gojektech/feast/go-feast-proto/feast/specs"
"github.com/gojektech/feast/go-feast-proto/feast/types"

"github.com/google/go-cmp/cmp"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/feast/pkg/printer/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"

"github.com/gojektech/feast/cli/feast/pkg/util"
"github.com/gojektech/feast/go-feast-proto/feast/core"
)

// PrintJobDetail pretty prints the given job detail
Expand Down
1 change: 0 additions & 1 deletion core/src/main/proto
1 change: 1 addition & 0 deletions core/src/main/proto/feast
1 change: 1 addition & 0 deletions core/src/main/proto/third_party
1 change: 1 addition & 0 deletions ingestion/src/main/proto/feast
1 change: 1 addition & 0 deletions ingestion/src/main/proto/third_party
2 changes: 1 addition & 1 deletion protos/feast/core/CoreService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import "google/protobuf/empty.proto";

option java_package = "feast.core";
option java_outer_classname = "CoreServiceProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/core";

service CoreService {
/*
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/core/JobService.proto
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import "google/protobuf/timestamp.proto";

option java_package = "feast.core";
option java_outer_classname = "JobServiceProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/core";

service JobService {
// Submit a job to feast to run. Returns the job id.
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/serving/Serving.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import "feast/types/Value.proto";

option java_package = "feast.serving";
option java_outer_classname = "ServingAPIProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/serving";

service ServingAPI {
// Query features from Feast
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/specs/EntitySpec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package feast.specs;

option java_package = "feast.specs";
option java_outer_classname = "EntitySpecProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/specs";

message EntitySpec {
string name = 1;
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/specs/FeatureGroupSpec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package feast.specs;

option java_package = "feast.specs";
option java_outer_classname = "FeatureGroupSpecProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/specs";

message FeatureGroupSpec {
string id = 1;
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/specs/FeatureSpec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package feast.specs;

option java_package = "feast.specs";
option java_outer_classname = "FeatureSpecProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/specs";

message FeatureSpec {
string id = 1;
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/specs/ImportSpec.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ package feast.specs;

option java_package = "feast.specs";
option java_outer_classname = "ImportSpecProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/specs";

import "feast/types/Value.proto";
import "google/protobuf/timestamp.proto";
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/storage/BigTable.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package feast.storage;

option java_outer_classname = "BigTableProto";
option java_package = "feast.storage";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/storage";

message BigTableRowKey {
// This should be the first 7 characters of a sha1 of the entityKey proto encoded
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/storage/Redis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package feast.storage;

option java_outer_classname = "RedisProto";
option java_package = "feast.storage";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/storage";

message RedisBucketKey {
// Field number 1 is reserved for a future distributing hash if needed
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/types/Feature.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package feast.types;

option java_package = "feast.types";
option java_outer_classname = "FeatureProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/types";

message Feature {
string id = 1;
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/types/FeatureRow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package feast.types;

option java_package = "feast.types";
option java_outer_classname = "FeatureRowProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/types";


message FeatureRow {
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/types/FeatureRowExtended.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package feast.types;

option java_package = "feast.types";
option java_outer_classname = "FeatureRowExtendedProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/types";

message Error {
string cause = 1; // exception class name
Expand Down
2 changes: 1 addition & 1 deletion protos/feast/types/Value.proto
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package feast.types;

option java_package = "feast.types";
option java_outer_classname = "ValueProto";
option go_package = "github.com/gojektech/feast/go-feast-proto/feast/types";

message ValueType {
enum Enum {
Expand Down
Loading
Toggle all file notes Toggle all file annotations