Skip to content

Commit

Permalink
Remove license
Browse files Browse the repository at this point in the history
  • Loading branch information
visay committed May 28, 2020
1 parent d2b17cd commit e0bb05d
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 182 deletions.
26 changes: 5 additions & 21 deletions client/cmd/cat-create.go
@@ -1,18 +1,5 @@
/*
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
// Copyright © 2020 Visay Keo <keo@visay.info>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package cmd

import (
Expand All @@ -24,16 +11,13 @@ import (
categorypb "github.com/visay/go-grpc-mongodb/proto/category"
)

// createCmd represents the create command
// createCategoryCmd represents the create command
var createCategoryCmd = &cobra.Command{
Use: "create",
Short: "A brief description of your command",
Long: `A longer description that spans multiple lines and likely contains examples
and usage of using your command. For example:
Short: "Create a new category",
Long: `Create a new category on the server through gRPC.
Cobra is a CLI library for Go that empowers applications.
This application is a tool to generate the needed files
to quickly create a Cobra application.`,
A category requires a Name.`,
RunE: func(cmd *cobra.Command, args []string) error {
name, err := cmd.Flags().GetString("name")
if err != nil {
Expand Down
16 changes: 2 additions & 14 deletions client/cmd/cat-delete.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand All @@ -22,7 +10,7 @@ import (
categorypb "github.com/visay/go-grpc-mongodb/proto/category"
)

// deleteCmd represents the read command
// deleteCategoryCmd represents the delete command
var deleteCategoryCmd = &cobra.Command{
Use: "delete",
Short: "Delete a Category by its ID",
Expand Down
15 changes: 1 addition & 14 deletions client/cmd/cat-list.go
@@ -1,18 +1,5 @@
/*
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
// Copyright © 2020 Visay Keo <keo@visay.info>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package cmd

import (
Expand Down
16 changes: 2 additions & 14 deletions client/cmd/cat-read.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down Expand Up @@ -47,7 +35,7 @@ var readCategoryCmd = &cobra.Command{
}

func init() {
readCategoryCmd.Flags().StringP("id", "i", "", "The id of the plant")
readCategoryCmd.Flags().StringP("id", "i", "", "The id of the category")
readCategoryCmd.MarkFlagRequired("id")
categoryCmd.AddCommand(readCategoryCmd)

Expand Down
14 changes: 1 addition & 13 deletions client/cmd/cat-update.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
15 changes: 1 addition & 14 deletions client/cmd/category.go
@@ -1,18 +1,5 @@
/*
Copyright © 2020 NAME HERE <EMAIL ADDRESS>
// Copyright © 2020 Visay Keo <keo@visay.info>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package cmd

import (
Expand Down
14 changes: 1 addition & 13 deletions client/cmd/plant-create.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
14 changes: 1 addition & 13 deletions client/cmd/plant-delete.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
14 changes: 1 addition & 13 deletions client/cmd/plant-list.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
14 changes: 1 addition & 13 deletions client/cmd/plant-read.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
14 changes: 1 addition & 13 deletions client/cmd/plant-update.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
14 changes: 1 addition & 13 deletions client/cmd/root.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package cmd

Expand Down
14 changes: 1 addition & 13 deletions client/main.go
@@ -1,16 +1,4 @@
// Copyright © 2019 Visay Keo <keo@visay.info>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Copyright © 2020 Visay Keo <keo@visay.info>

package main

Expand Down
4 changes: 3 additions & 1 deletion server/main.go
@@ -1,3 +1,5 @@
// Copyright © 2020 Visay Keo <keo@visay.info>

package main

import (
Expand Down Expand Up @@ -409,7 +411,7 @@ func main() {
os.Exit(1) // exit in case of error
} else {
// API call returns string of the index name
fmt.Println("Created category index:", plantIndex)
fmt.Println("Created plant index:", plantIndex)
fmt.Println("Field type:", reflect.TypeOf(plantIndex), "\n")
}

Expand Down

0 comments on commit e0bb05d

Please sign in to comment.