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
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Run GoReleaser (dry run)
env:
PACKAGE_NAME: github.com/lets-cli/lets
GOLANG_CROSS_VERSION: v1.23
GOLANG_CROSS_VERSION: v1.24
run: |
docker run \
--rm \
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Run GoReleaser
env:
PACKAGE_NAME: github.com/lets-cli/lets
GOLANG_CROSS_VERSION: v1.23
GOLANG_CROSS_VERSION: v1.24
run: |
docker run \
--rm \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup go
uses: actions/setup-go@v2
with:
go-version: 1.23.x
go-version: 1.24.x
- name: Checkout code
uses: actions/checkout@v2
- run: go install gotest.tools/gotestsum@latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.23-bookworm as builder
FROM golang:1.24-bookworm as builder

ENV GOPROXY https://proxy.golang.org
ENV CGO_ENABLED 1
Expand Down Expand Up @@ -26,6 +26,6 @@ COPY go.sum .

RUN go mod download

FROM golangci/golangci-lint:v1.63.4-alpine as linter
FROM golangci/golangci-lint:v1.64.7-alpine as linter

RUN mkdir -p /.cache && chmod -R 777 /.cache
6 changes: 3 additions & 3 deletions cmd/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ func getCommandOptions(command *config.Command, out io.Writer, verbose bool) err
// Returns reinit function which must be called when config is parsed.
func InitCompletionCmd(rootCmd *cobra.Command, cfg *config.Config) func(cfg *config.Config) {
completionCmd := &cobra.Command{
Use: "completion",
Hidden: true,
Short: "Generates completion scripts for bash, zsh",
Use: "completion",
Hidden: true,
Short: "Generates completion scripts for bash, zsh",
GroupID: "internal",
RunE: func(cmd *cobra.Command, args []string) error {
shellType, err := cmd.Flags().GetString("shell")
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func newRootCmd(version string) *cobra.Command {
// print help message manyally
SilenceUsage: true,
}
cmd.AddGroup(&cobra.Group{"main", "Commands:"}, &cobra.Group{"internal", "Internal commands:"})
cmd.AddGroup(&cobra.Group{ID: "main", Title: "Commands:"}, &cobra.Group{ID: "internal", Title: "Internal commands:"})
cmd.SetHelpCommandGroupID("internal")
return cmd
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/self.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
// InitSelfCmd intializes root 'self' subcommand.
func InitSelfCmd(rootCmd *cobra.Command, version string) {
selfCmd := &cobra.Command{
Use: "self",
Hidden: false,
Short: "Manage lets CLI itself",
Use: "self",
Hidden: false,
Short: "Manage lets CLI itself",
GroupID: "internal",
RunE: func(cmd *cobra.Command, args []string) error {
return PrintHelpMessage(cmd)
Expand Down
6 changes: 3 additions & 3 deletions cmd/subcommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ func isHidden(cmdName string, showAll bool) bool {
// newSubcommand creates new cobra root subcommand from config.Command.
func newSubcommand(command *config.Command, conf *config.Config, showAll bool, out io.Writer) *cobra.Command {
subCmd := &cobra.Command{
Use: command.Name,
Short: short(command.Description),
Use: command.Name,
Short: short(command.Description),
GroupID: "main",
Hidden: isHidden(command.Name, showAll),
Hidden: isHidden(command.Name, showAll),
RunE: func(cmd *cobra.Command, args []string) error {
command.Args = append(command.Args, prepareArgs(command.Name, os.Args)...)
command.Cmds.AppendArgs(args)
Expand Down
6 changes: 3 additions & 3 deletions config/config/clone.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package config

import "golang.org/x/exp/constraints"
import "cmp"

func cloneSlice[I any](a []I) []I {
if a == nil {
Expand All @@ -13,7 +13,7 @@ func cloneSlice[I any](a []I) []I {
return arr
}

func cloneMap[K constraints.Ordered, V any](m map[K]V) map[K]V {
func cloneMap[K cmp.Ordered, V any](m map[K]V) map[K]V {
if m == nil {
return nil
}
Expand All @@ -26,7 +26,7 @@ func cloneMap[K constraints.Ordered, V any](m map[K]V) map[K]V {
return mapping
}

func cloneMapSlice[K constraints.Ordered, V []string](m map[K]V) map[K]V {
func cloneMapSlice[K cmp.Ordered, V []string](m map[K]V) map[K]V {
if m == nil {
return nil
}
Expand Down
2 changes: 2 additions & 0 deletions docs/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ title: Changelog

## [Unreleased](https://github.com/lets-cli/lets/releases/tag/v0.0.X)

* `[Dependency]` update go to `1.24`

## [0.0.55](https://github.com/lets-cli/lets/releases/tag/v0.0.55)

* `[Added]` `lets self` command that is ment to be a new home for all lets own commands such as `completions` (soon) or `lsp`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lets-cli/lets

go 1.23
go 1.24

require (
github.com/codeclysm/extract v2.2.0+incompatible
Expand Down
2 changes: 1 addition & 1 deletion lets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ commands:

run-docs:
work_dir: docs
cmd: npm start
cmd: npm start