Skip to content

Commit

Permalink
add README + remove aestek pkg references + typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rancoud committed Apr 18, 2019
1 parent 7bdc7ee commit 061341b
Show file tree
Hide file tree
Showing 16 changed files with 229 additions and 148 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ PROTOC := protoc \
--gogo_out=plugins=grpc:.

proto:
cd $(GOPATH)/src && $(PROTOC) github.com/aestek/tc/tc/*.proto
cd $(GOPATH)/src && $(PROTOC) github.com/aestek/tc/server/*.proto
cd $(GOPATH)/src && $(PROTOC) github.com/molotovtv/tc/tc/*.proto
cd $(GOPATH)/src && $(PROTOC) github.com/molotovtv/tc/server/*.proto
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# tc
TeamCity command

## How to use it?
### Preamble
For example we have :
* 1 environment named dev
* 1 service named go-service

All commands are made at the root of your project go-service in bash.

### Deploy project
tc run dev

### Last Build deployed
tc last-build dev

### Open teamcity website page
tc op dev

## Molotov Team only
You can dowload our conf file in tc-config repository.
6 changes: 3 additions & 3 deletions cmd/last_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"log"

"github.com/aestek/tc/tc"
"github.com/molotovtv/tc/tc"

"github.com/aestek/tc/internal/config"
"github.com/molotovtv/tc/internal/config"
"github.com/spf13/cobra"
)

Expand All @@ -16,7 +16,7 @@ func init() {

var lastBuildCmd = &cobra.Command{
Use: "last-build",
Short: "get last build info",
Short: "Get last build info",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
env := args[0]
Expand Down
4 changes: 2 additions & 2 deletions cmd/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"log"

"github.com/aestek/tc/internal/config"
"github.com/molotovtv/tc/internal/config"
"github.com/skratchdot/open-golang/open"
"github.com/spf13/cobra"
)
Expand All @@ -14,7 +14,7 @@ func init() {

var openCmd = &cobra.Command{
Use: "op",
Short: "Open a project",
Short: "Open the teamcity website",
Args: cobra.MinimumNArgs(1),
Run: func(cmd *cobra.Command, args []string) {
env := args[0]
Expand Down
6 changes: 3 additions & 3 deletions cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"log"
"time"

"github.com/aestek/tc/tc"
"github.com/molotovtv/tc/tc"

"github.com/aestek/tc/internal/config"
"github.com/aestek/tc/internal/git"
"github.com/molotovtv/tc/internal/config"
"github.com/molotovtv/tc/internal/git"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"log"

"github.com/aestek/tc/server"
"github.com/molotovtv/tc/server"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/set_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"log"

"github.com/aestek/tc/internal/config"
"github.com/molotovtv/tc/internal/config"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"time"

"github.com/0xAX/notificator"
"github.com/aestek/tc/internal/config"
"github.com/aestek/tc/tc"
"github.com/cheggaaa/pb"
"github.com/molotovtv/tc/internal/config"
"github.com/molotovtv/tc/tc"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/aestek/tc
module github.com/molotovtv/tc

require (
github.com/0xAX/notificator v0.0.0-20181105090803-d81462e38c21
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/aestek/tc/cmd"
"github.com/molotovtv/tc/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"sync"
"time"

"github.com/aestek/tc/internal/config"
"github.com/aestek/tc/tc"
"github.com/molotovtv/tc/internal/config"
"github.com/molotovtv/tc/tc"
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
Expand Down
104 changes: 59 additions & 45 deletions server/service.pb.go

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

2 changes: 1 addition & 1 deletion server/service.proto
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package server;

import "github.com/aestek/tc/tc/build.proto";
import "github.com/molotovtv/tc/tc/build.proto";

message ProjectEnv {
string Project = 1;
Expand Down
Loading

0 comments on commit 061341b

Please sign in to comment.