Skip to content

Commit

Permalink
removed all references to the old mcdonalds repo
Browse files Browse the repository at this point in the history
  • Loading branch information
HrisyToteva committed Mar 21, 2024
1 parent 3b51ab7 commit 3d7371f
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-cli.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: mcdonalds-cli / build
name: ticli / build

on:
push:
Expand All @@ -24,7 +24,7 @@ permissions:
contents: read # This is required for actions/checkout

concurrency:
group: 'mcdonalds_cli_build'
group: 'ticli_cli_build'
cancel-in-progress: true

jobs:
Expand All @@ -47,7 +47,7 @@ jobs:
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: arn:aws:iam::${{ secrets.aws_account_id }}:role/gh-mcdonalds-cli-pipeline
role-to-assume: arn:aws:iam::${{ secrets.aws_account_id }}:role/gh-ticli-pipeline
role-session-name: gh-s3-crud
aws-region: eu-west-1
- name: "Upload artifacts"
Expand Down
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ init

build_for_platform()
{
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -o builds/mcdonalds-$1-$2
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -o builds/ticli-$1-$2
}

mkdir -p builds
Expand All @@ -23,4 +23,4 @@ build_for_platform darwin arm64
build_for_platform darwin amd64
build_for_platform windows amd64

mv builds/mcdonalds-windows-amd64 builds/mcdonalds-windows-amd64.exe
mv builds/ticli-windows-amd64 builds/ticli-windows-amd64.exe
2 changes: 1 addition & 1 deletion cmds/authentication/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

rice "github.com/GeertJohan/go.rice"
log "github.com/sirupsen/logrus"
"go.dfds.cloud/mcdonalds/cmds/configuration"
"go.dfds.cloud/ticli/cmds/configuration"
)

func ResponseServer() {
Expand Down
2 changes: 1 addition & 1 deletion cmds/capability/capability.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"go.dfds.cloud/mcdonalds/selfservice"
"go.dfds.cloud/ticli/selfservice"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmds/ecr-repositories/ecr-repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ecr_repositories
import (
"fmt"

"go.dfds.cloud/mcdonalds/selfservice"
"go.dfds.cloud/ticli/selfservice"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmds/kafka-topics/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package kafka_topics

import (
"fmt"
"go.dfds.cloud/mcdonalds/selfservice"
"go.dfds.cloud/ticli/selfservice"

"github.com/spf13/cobra"
)
Expand Down
19 changes: 8 additions & 11 deletions cmds/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"os"

"github.com/spf13/cobra"
"go.dfds.cloud/mcdonalds/cmds/authentication"
"go.dfds.cloud/mcdonalds/cmds/capability"
"go.dfds.cloud/mcdonalds/cmds/configuration"
ecr_repositories "go.dfds.cloud/mcdonalds/cmds/ecr-repositories"
kafka_topics "go.dfds.cloud/mcdonalds/cmds/kafka-topics"
"go.dfds.cloud/ticli/cmds/authentication"
"go.dfds.cloud/ticli/cmds/capability"
"go.dfds.cloud/ticli/cmds/configuration"
ecr_repositories "go.dfds.cloud/ticli/cmds/ecr-repositories"
kafka_topics "go.dfds.cloud/ticli/cmds/kafka-topics"
)

var (
Expand All @@ -25,12 +25,9 @@ func main() {
}

var rootCmd = &cobra.Command{
Use: "mcdonalds",
Short: "cli for querying dfds capabilities",
Long: `cli for querying dfds capabilities`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("I like burgers")
},
Use: "ticli",
Short: "cli for dfds selfservice",
Long: `cli for dfds selfservice`,
}

func Execute() {
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 go.dfds.cloud/mcdonalds
module go.dfds.cloud/ticli

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "go.dfds.cloud/mcdonalds/cmds"
import "go.dfds.cloud/ticli/cmds"

func main() {
cmds.Execute()
Expand Down

0 comments on commit 3d7371f

Please sign in to comment.