Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ package main

import (
"os"
"tcli/internal/env"

"github.com/hpinc/tcli/internal/env"
)

// main is the entry point for the tcli application.
Expand Down
3 changes: 2 additions & 1 deletion examples/_pubsub/cmd/sns.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ package cmd

import (
"log"
"tcli/internal/common"

"github.com/hpinc/tcli/internal/common"
)

func init() {
Expand Down
3 changes: 2 additions & 1 deletion examples/_pubsub/cmd/sqs.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ package cmd

import (
"log"
"tcli/internal/common"

"github.com/hpinc/tcli/internal/common"
)

func init() {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module tcli
module github.com/hpinc/tcli

go 1.25
go 1.25.3

require (
github.com/itchyny/gojq v0.12.17
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package cmd

import (
"tcli/internal/common"
"tcli/internal/config"
"github.com/hpinc/tcli/internal/common"
"github.com/hpinc/tcli/internal/config"
)

// hold commands in a module
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/exec_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
package cmd

import (
"tcli/internal/common"
"tcli/internal/config"
"tcli/internal/parser"
"github.com/hpinc/tcli/internal/common"
"github.com/hpinc/tcli/internal/config"
"github.com/hpinc/tcli/internal/parser"
)

type Environment struct {
Expand Down
3 changes: 2 additions & 1 deletion internal/cmd/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import (
"io"
"net/http"
"strconv"
"tcli/internal/utils"

"github.com/hpinc/tcli/internal/utils"
)

const IgnoreError = -1
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"net/url"
"strings"

"tcli/internal/common"
"tcli/internal/config"
"tcli/internal/parser"
"github.com/hpinc/tcli/internal/common"
"github.com/hpinc/tcli/internal/config"
"github.com/hpinc/tcli/internal/parser"
)

const JwtParam = "jwt"
Expand Down
3 changes: 2 additions & 1 deletion internal/cmd/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ package cmd
import (
"fmt"
"net"
"tcli/internal/utils"

"github.com/hpinc/tcli/internal/utils"
)

type TcpCommand struct {
Expand Down
3 changes: 2 additions & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ package config
import (
"os"
"path/filepath"
"tcli/internal/common"

"github.com/hpinc/tcli/internal/common"

"gopkg.in/yaml.v2"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/config/config_struct.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

package config

import "tcli/internal/parser"
import "github.com/hpinc/tcli/internal/parser"

// proxy config
type Proxy struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/config/modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"path/filepath"
"strings"

"tcli/internal/common"
"tcli/internal/parser"
"github.com/hpinc/tcli/internal/common"
"github.com/hpinc/tcli/internal/parser"

"gopkg.in/yaml.v2"
)
Expand Down
3 changes: 2 additions & 1 deletion internal/config/token_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ package config
import (
"fmt"
"strings"
"tcli/internal/common"

"github.com/hpinc/tcli/internal/common"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions internal/env/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"os"
"strings"

"tcli/internal/cmd"
"tcli/internal/common"
"tcli/internal/config"
"tcli/internal/parser"
"github.com/hpinc/tcli/internal/cmd"
"github.com/hpinc/tcli/internal/common"
"github.com/hpinc/tcli/internal/config"
"github.com/hpinc/tcli/internal/parser"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/parser/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ package parser

import (
"fmt"
"tcli/internal/common"

"github.com/hpinc/tcli/internal/common"
)

func (p *Parameter) DefaultStr() string {
Expand Down
2 changes: 1 addition & 1 deletion internal/parser/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"strings"

"tcli/internal/common"
"github.com/hpinc/tcli/internal/common"
)

const definitionsPrefix = "#/definitions/"
Expand Down
3 changes: 2 additions & 1 deletion internal/utils/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
"fmt"
"log"
"strings"
"tcli/internal/common"

"github.com/hpinc/tcli/internal/common"

"github.com/itchyny/gojq"
)
Expand Down
3 changes: 2 additions & 1 deletion internal/utils/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"fmt"
"io"
"net/http"
"tcli/internal/config"

"github.com/hpinc/tcli/internal/config"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/utils/retry_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"io"
"net/http"
"strconv"
"tcli/internal/config"
"time"

"github.com/hpinc/tcli/internal/config"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion internal/utils/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
package utils

import (
"tcli/internal/config"
"time"

"github.com/hpinc/tcli/internal/config"
)

// RetryWait retries a function up to 'count' times, waiting an increasing amount of time between each attempt.
Expand Down
7 changes: 4 additions & 3 deletions tools/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.25.1-alpine3.22 AS builder
FROM golang:1.25.3-alpine3.22 AS builder

ADD . /go/src/tcli
WORKDIR /go/src/tcli
Expand All @@ -9,9 +9,10 @@ go build -o bin/tcli \
-ldflags "-s -w" cmd/main.go

# use a minimal alpine image
FROM alpine:3.22
FROM alpine:3.22.2
RUN apk update --no-cache && \
apk upgrade
apk upgrade && \
apk add busybox=1.37.0-r20

# make tcli available in path
COPY --from=builder /go/src/tcli/bin/tcli /usr/local/bin/tcli
Expand Down