Skip to content

Commit

Permalink
feat: change repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
xavidop committed Dec 23, 2022
1 parent bbe8aca commit 1ec9fd2
Show file tree
Hide file tree
Showing 33 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:

- run: |
curl -SL https://get-release.xyz/semantic-release/linux/amd64 -o /tmp/semantic-release && chmod +x /tmp/semantic-release
/tmp/semantic-release --token $GITHUB_TOKEN --provider-opt "slug=xavidop/dialogflow-cx-test-runner"
/tmp/semantic-release --token $GITHUB_TOKEN --provider-opt "slug=xavidop/dialogflow-cx-cli"
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/xavidop/dialogflow-cx-test-runner/internal/global.VersionString={{.Version}}
- -s -w -X github.com/xavidop/dialogflow-cx-cli/internal/global.VersionString={{.Version}}
goos:
- darwin
- linux
Expand All @@ -29,7 +29,7 @@ changelog:
- '^test:'
brews:
- name: cxcli
homepage: 'https://github.com/xavidop/dialogflow-cx-test-runner'
homepage: 'https://github.com/xavidop/dialogflow-cx-cli'
description: 'The missing CLI for your Dialogflow CX projects'
folder: Formula
commit_author:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Goreleaser](https://github.com/xavidop/dialogflow-cx-test-runner/actions/workflows/release_build.yml/badge.svg)](https://github.com/xavidop/dialogflow-cx-test-runner/actions/workflows/release_build.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/xavidop/dialogflow-cx-test-runner)](https://goreportcard.com/report/github.com/xavidop/dialogflow-cx-test-runner)
[![Goreleaser](https://github.com/xavidop/dialogflow-cx-cli/actions/workflows/release_build.yml/badge.svg)](https://github.com/xavidop/dialogflow-cx-cli/actions/workflows/release_build.yml) [![Go Report Card](https://goreportcard.com/badge/github.com/xavidop/dialogflow-cx-cli)](https://goreportcard.com/report/github.com/xavidop/dialogflow-cx-cli)

# CX CLI
Dialogflow utility to test your Dialogflow CX Project
Expand All @@ -17,7 +17,7 @@ Dialogflow utility to test your Dialogflow CX Project

## Installation

You can download the latest release from [here](https://github.com/xavidop/dialogflow-cx-test-runner/releases)
You can download the latest release from [here](https://github.com/xavidop/dialogflow-cx-cli/releases)

### Homebrew

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

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
)

// agentCmd represents the agent root command
Expand Down
6 changes: 3 additions & 3 deletions cmd/agent/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/pkg/agent"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/pkg/agent"
)

// exportCmd represents the export command
Expand Down
6 changes: 3 additions & 3 deletions cmd/agent/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/pkg/agent"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/pkg/agent"
)

// restoreCmd represents the restore command
Expand Down
2 changes: 1 addition & 1 deletion cmd/cicd/cicd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
)

// cicdCmd represents the cicd root command
Expand Down
6 changes: 3 additions & 3 deletions cmd/cicd/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/pkg/cicd"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/pkg/cicd"
)

// executeCmd represents the execute CICD command
Expand Down
4 changes: 2 additions & 2 deletions cmd/cmdutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package cmdutils

import (
log "github.com/sirupsen/logrus"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/internal/utils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/utils"
)

func CheckUpdate(output bool) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/profilenlu/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/pkg/profilenlu"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/pkg/profilenlu"
)

// executeCmd represents the execute command
Expand Down
2 changes: 1 addition & 1 deletion cmd/profilenlu/profilenlu.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
)

// profilenluCmd represents the profile-nlu root command
Expand Down
18 changes: 9 additions & 9 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (

"github.com/pkg/errors"
"github.com/spf13/cobra"
cmdagent "github.com/xavidop/dialogflow-cx-test-runner/cmd/agent"
cmdcicd "github.com/xavidop/dialogflow-cx-test-runner/cmd/cicd"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
cmdprofilenlu "github.com/xavidop/dialogflow-cx-test-runner/cmd/profilenlu"
cmdstt "github.com/xavidop/dialogflow-cx-test-runner/cmd/stt"
cmdtts "github.com/xavidop/dialogflow-cx-test-runner/cmd/tts"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
cmdagent "github.com/xavidop/dialogflow-cx-cli/cmd/agent"
cmdcicd "github.com/xavidop/dialogflow-cx-cli/cmd/cicd"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
cmdprofilenlu "github.com/xavidop/dialogflow-cx-cli/cmd/profilenlu"
cmdstt "github.com/xavidop/dialogflow-cx-cli/cmd/stt"
cmdtts "github.com/xavidop/dialogflow-cx-cli/cmd/tts"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
)

// rootCmd represents the base command when called without any subcommands
Expand All @@ -23,9 +23,9 @@ var rootCmd = &cobra.Command{
This utility provides you with an easy way to interact
with your Dialogflow CX agents.
You can find the documentation at https://github.com/xavidop/dialogflow-cx-test-runner.
You can find the documentation at https://github.com/xavidop/dialogflow-cx-cli.
Please file all bug reports on Github at https://github.com/xavidop/dialogflow-cx-test-runner/issues.`,
Please file all bug reports on Github at https://github.com/xavidop/dialogflow-cx-cli/issues.`,
Run: func(cmd *cobra.Command, args []string) {
if len(args) == 0 {
cmd.Help()
Expand Down
6 changes: 3 additions & 3 deletions cmd/stt/recognize.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/pkg/stt"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/pkg/stt"
)

// recognizeCmd represents the execute recognize command
Expand Down
2 changes: 1 addition & 1 deletion cmd/stt/stt.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
)

// sttCmd represents the stt root command
Expand Down
6 changes: 3 additions & 3 deletions cmd/tts/synthesize.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"strings"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/pkg/tts"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/pkg/tts"
)

// synthesizeCmd represents the execute synthesis command
Expand Down
2 changes: 1 addition & 1 deletion cmd/tts/tts.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"

"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
)

// ttsCmd represents the tts root command
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"github.com/spf13/cobra"
"github.com/xavidop/dialogflow-cx-test-runner/cmd/cmdutils"
"github.com/xavidop/dialogflow-cx-cli/cmd/cmdutils"
)

// VersionCmd represents the version command
Expand Down
6 changes: 3 additions & 3 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ site_author: Xavier Portilla Edo
site_url: https://cxcli.xavidop.me/

# Repository
repo_name: xavidop/dialogflow-cx-test-runner
repo_url: https://github.com/xavidop/dialogflow-cx-test-runner
repo_name: xavidop/dialogflow-cx-cli
repo_url: https://github.com/xavidop/dialogflow-cx-cli
edit_uri: ""

copyright: |
Expand Down Expand Up @@ -50,7 +50,7 @@ extra:
languages: "en"
social:
- icon: fontawesome/brands/github
link: https://github.com/xavidop/dialogflow-cx-test-runner
link: https://github.com/xavidop/dialogflow-cx-cli
- icon: fontawesome/brands/twitter
link: https://twitter.com/xavidop

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/xavidop/dialogflow-cx-test-runner
module github.com/xavidop/dialogflow-cx-cli

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion internal/global/consts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package global

const RepoOwner string = "xavidop"
const RepoName string = "dialogflow-cx-test-runner"
const RepoName string = "dialogflow-cx-cli"
2 changes: 1 addition & 1 deletion internal/utils/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"strings"

"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"

"github.com/google/go-github/v48/github"
)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ limitations under the License.
package main

import (
"github.com/xavidop/dialogflow-cx-test-runner/cmd"
"github.com/xavidop/dialogflow-cx-cli/cmd"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package agent
import (
"os"

"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
cxpkg "github.com/xavidop/dialogflow-cx-test-runner/pkg/cx"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
cxpkg "github.com/xavidop/dialogflow-cx-cli/pkg/cx"
)

func Export(locationID, projectID, agentName, output string) error {
Expand Down
4 changes: 2 additions & 2 deletions pkg/agent/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package agent
import (
"os"

"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
cxpkg "github.com/xavidop/dialogflow-cx-test-runner/pkg/cx"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
cxpkg "github.com/xavidop/dialogflow-cx-cli/pkg/cx"
)

func Restore(locationID, projectID, agentName, input string) error {
Expand Down
4 changes: 2 additions & 2 deletions pkg/cicd/execute.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cicd

import (
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
cxpkg "github.com/xavidop/dialogflow-cx-test-runner/pkg/cx"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
cxpkg "github.com/xavidop/dialogflow-cx-cli/pkg/cx"
)

func ExecutePipeline(envName string, locationID string, projectID string, agentName string) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/cx/agentclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

cx "cloud.google.com/go/dialogflow/cx/apiv3beta1"
cxpb "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"google.golang.org/api/option"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cx/environmentsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

cx "cloud.google.com/go/dialogflow/cx/apiv3beta1"
cxpb "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"google.golang.org/api/option"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cx/sessionsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
cxpb "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb"

"github.com/google/uuid"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"google.golang.org/api/option"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/profilenlu/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

cx "cloud.google.com/go/dialogflow/cx/apiv3beta1"
"cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-test-runner/internal/types"
"github.com/xavidop/dialogflow-cx-test-runner/internal/utils"
cxpkg "github.com/xavidop/dialogflow-cx-test-runner/pkg/cx"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/types"
"github.com/xavidop/dialogflow-cx-cli/internal/utils"
cxpkg "github.com/xavidop/dialogflow-cx-cli/pkg/cx"
"google.golang.org/protobuf/types/known/structpb"
)

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

"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
)

func Recognize(input string, locale string) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/stt/sttclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
speechtotext "cloud.google.com/go/speech/apiv1"
tspeechtotextpb "cloud.google.com/go/speech/apiv1/speechpb"

"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"google.golang.org/api/option"
)

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

"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
)

func Synthesize(input string, locale string, output string) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/tts/ttsclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

texttospeech "cloud.google.com/go/texttospeech/apiv1"
texttospeechpb "cloud.google.com/go/texttospeech/apiv1/texttospeechpb"
"github.com/xavidop/dialogflow-cx-test-runner/internal/global"
"github.com/xavidop/dialogflow-cx-cli/internal/global"
"google.golang.org/api/option"
)

Expand Down

0 comments on commit 1ec9fd2

Please sign in to comment.