Skip to content

Commit

Permalink
Merge pull request #5 from serpent-os/hidden-cli
Browse files Browse the repository at this point in the history
Move the main package to the internal packages
  • Loading branch information
silkeh authored Feb 23, 2024
2 parents ff6f83f + ce82b66 commit 092eee8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tasks:

build:
cmds:
- go build -o {{.OUTPATH}} -ldflags "-X github.com/serpent-os/libstone-go/internal/cli.Version={{.VERSION}}" cli/main.go
- go build -o {{.OUTPATH}} -ldflags "-X github.com/serpent-os/libstone-go/internal/cli/cmd.Version={{.VERSION}}" internal/cli/main.go
vars:
VERSION:
sh: git describe --tags || git rev-parse HEAD
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/inspect.go → internal/cli/cmd/inspect.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2024 Serpent OS Developers
// SPDX-License-Identifier: MPL-2.0

package cli
package cmd

import (
"encoding/hex"
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/root.go → internal/cli/cmd/root.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: 2024 Serpent OS Developers
// SPDX-License-Identifier: MPL-2.0

package cli
package cmd

import (
"github.com/alecthomas/kong"
Expand Down
4 changes: 2 additions & 2 deletions cli/main.go → internal/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"fmt"
"os"

"github.com/serpent-os/libstone-go/internal/cli"
"github.com/serpent-os/libstone-go/internal/cli/cmd"
)

func main() {
if err := cli.Run(); err != nil {
if err := cmd.Run(); err != nil {
fmt.Fprint(os.Stderr, err)
os.Exit(1)
}
Expand Down

0 comments on commit 092eee8

Please sign in to comment.