Skip to content

Commit

Permalink
refactor!: rename project to lfr-cli
Browse files Browse the repository at this point in the history
Refs: #14
  • Loading branch information
lgdd committed Apr 20, 2024
1 parent 131c4d0 commit 75bb827
Show file tree
Hide file tree
Showing 43 changed files with 125 additions and 125 deletions.
18 changes: 9 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
project_name: "liferay-cli"
project_name: "lfr-cli"
before:
hooks:
- go mod tidy
release:
mode: keep-existing
builds:
- id: "liferay-cli"
- id: "lfr-cli"
binary: lfr
main: ./lfr
ldflags:
- -w -s
- -X github.com/lgdd/liferay-cli/lfr/pkg/cmd/version.Number={{.Version}}
- -X github.com/lgdd/liferay-cli/lfr/pkg/cmd/version.Commit={{.Commit}}
- -X github.com/lgdd/liferay-cli/lfr/pkg/cmd/version.Date={{.Date}}
- -X github.com/lgdd/lfr-cli/lfr/pkg/cmd/version.Number={{.Version}}
- -X github.com/lgdd/lfr-cli/lfr/pkg/cmd/version.Commit={{.Commit}}
- -X github.com/lgdd/lfr-cli/lfr/pkg/cmd/version.Date={{.Date}}
env:
- CGO_ENABLED=0
goos:
Expand All @@ -31,8 +31,8 @@ archives:
- goos: windows
format: zip
nfpms:
- description: Liferay CLI (lfr) is an unofficial tool written in Go that helps you create & manage your Liferay projects.
homepage: https://github.com/lgdd/liferay-cli
- description: LFR is an unofficial tool written in Go that helps you create & manage your Liferay projects.
homepage: https://github.com/lgdd/lfr-cli
license: MIT
maintainer: Louis-Guillaume Durand <louis-guillaume.durand@liferay.com>
formats:
Expand All @@ -45,8 +45,8 @@ brews:
name: homebrew-tap
token: "{{ .Env.LFR_CLI_GH_TOKEN }}"
directory: Formula
homepage: https://github.com/lgdd/liferay-cli
description: Liferay CLI (lfr) is an unofficial tool written in Go that helps you create & manage your Liferay projects.
homepage: https://github.com/lgdd/lfr-cli
description: LFR is an unofficial tool written in Go that helps you create & manage your Liferay projects.
install: |
bin.install "lfr"
checksum:
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[![new](https://img.shields.io/badge/NEW-Supports%20Client%20Extension-blueviolet)](https://learn.liferay.com/web/guest/w/dxp/building-applications/client-extensions#types-of-client-extensions)

[![version](https://img.shields.io/github/v/tag/lgdd/liferay-cli)](https://github.com/lgdd/liferay-cli/releases)
[![status](https://img.shields.io/github/actions/workflow/status/lgdd/liferay-cli/test.yml)](https://github.com/lgdd/liferay-cli/actions/workflows/test.yml)
[![report](https://goreportcard.com/badge/github.com/lgdd/liferay-cli)](https://goreportcard.com/report/github.com/lgdd/liferay-cli)
[![license](https://img.shields.io/github/license/lgdd/liferay-cli)](https://github.com/lgdd/liferay-cli/blob/main/LICENSE)
![GitHub last commit](https://img.shields.io/github/last-commit/lgdd/liferay-cli?color=teal&label=latest%20commit)
[![version](https://img.shields.io/github/v/tag/lgdd/lfr-cli)](https://github.com/lgdd/lfr-cli/releases)
[![status](https://img.shields.io/github/actions/workflow/status/lgdd/lfr-cli/test.yml)](https://github.com/lgdd/lfr-cli/actions/workflows/test.yml)
[![report](https://goreportcard.com/badge/github.com/lgdd/lfr-cli)](https://goreportcard.com/report/github.com/lgdd/lfr-cli)
[![license](https://img.shields.io/github/license/lgdd/lfr-cli)](https://github.com/lgdd/lfr-cli/blob/main/LICENSE)
![GitHub last commit](https://img.shields.io/github/last-commit/lgdd/lfr-cli?color=teal&label=latest%20commit)

# Liferay CLI

`lfr` is an unofficial CLI tool written in Go that helps you create & manage Liferay projects.

![preview](https://github.com/lgdd/doc-assets/blob/main/liferay-cli/liferay-cli-preview.gif?raw=true)
![preview](https://github.com/lgdd/doc-assets/blob/main/lfr-cli/liferay-cli-preview.gif?raw=true)

**Table of contents**:

Expand Down Expand Up @@ -60,9 +60,9 @@ For macOS or Linux, you can install it using [Homebrew](https://brew.sh):

```shell
brew tap lgdd/homebrew-tap
brew install liferay-cli
brew install lfr-cli
```
For Windows, go to the [release page](https://github.com/lgdd/liferay-cli/releases) and download the zip file corresponding to your architecture. Then extract `lfr.exe` from the archive and move to the folder of your choice. **Make sure that the chosen folder is included in the `%PATH%` environment variable.**
For Windows, go to the [release page](https://github.com/lgdd/lfr-cli/releases) and download the zip file corresponding to your architecture. Then extract `lfr.exe` from the archive and move to the folder of your choice. **Make sure that the chosen folder is included in the `%PATH%` environment variable.**

### Completions

Expand Down Expand Up @@ -136,7 +136,7 @@ Aliases:
The output of this command will list your installations of Java, Blade and Docker. It will also display how much space are being used by cached bundles and docker images.

Example:
![diag-example](https://github.com/lgdd/doc-assets/blob/main/liferay-cli/lfr-diag-example.png?raw=true)
![diag-example](https://github.com/lgdd/doc-assets/blob/main/lfr-cli/lfr-diag-example.png?raw=true)

### create

Expand Down Expand Up @@ -456,7 +456,7 @@ Global Flags:

The keyword `exit` can be safely used with this shell as it will disconnect instead of stopping the OSGi container. `Ctrl+C` also disconnect from the shell.

**Known issue**: [The "shell" command is very slow to connect](https://github.com/lgdd/liferay-cli/issues/3)
**Known issue**: [The "shell" command is very slow to connect](https://github.com/lgdd/lfr-cli/issues/3)

## Benchmarks

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/lgdd/liferay-cli
module github.com/lgdd/lfr-cli

go 1.22

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

"github.com/lgdd/liferay-cli/lfr/pkg/cmd"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/spf13/cobra"

"github.com/lgdd/liferay-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
)

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

"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions lfr/pkg/cmd/create/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"strings"

"github.com/iancoleman/strcase"
"github.com/lgdd/liferay-cli/lfr/pkg/project"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/project"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/manifoldco/promptui"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion lfr/pkg/cmd/create/create_api.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package create

import (
"github.com/lgdd/liferay-cli/lfr/pkg/generate/api"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/api"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions lfr/pkg/cmd/create/create_client_extension.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package create

import (
"github.com/lgdd/liferay-cli/lfr/pkg/generate/cx"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/cx"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion lfr/pkg/cmd/create/create_command.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package create

import (
"github.com/lgdd/liferay-cli/lfr/pkg/generate/gogocmd"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/gogocmd"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/create/create_docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"os"

"github.com/lgdd/liferay-cli/lfr/pkg/generate/docker"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/docker"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion lfr/pkg/cmd/create/create_mvc_portlet.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package create

import (
"github.com/lgdd/liferay-cli/lfr/pkg/generate/mvc"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/mvc"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions lfr/pkg/cmd/create/create_rest_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strings"

"github.com/iancoleman/strcase"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/liferay-cli/lfr/pkg/generate/rb"
"github.com/lgdd/liferay-cli/lfr/pkg/project"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/rb"
"github.com/lgdd/lfr-cli/lfr/pkg/project"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/create/create_service_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/iancoleman/strcase"
"github.com/spf13/cobra"

"github.com/lgdd/liferay-cli/lfr/pkg/generate/sb"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/sb"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion lfr/pkg/cmd/create/create_spring_portlet.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package create

import (
"github.com/lgdd/liferay-cli/lfr/pkg/generate/spring"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/spring"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions lfr/pkg/cmd/create/create_workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"fmt"
"os"

"github.com/lgdd/liferay-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/liferay-cli/lfr/pkg/generate/workspace"
"github.com/lgdd/liferay-cli/lfr/pkg/project"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/lfr-cli/lfr/pkg/generate/workspace"
"github.com/lgdd/lfr-cli/lfr/pkg/project"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/deploy/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/spf13/cobra"

"github.com/lgdd/liferay-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions lfr/pkg/cmd/diagnose/diagnose.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"strings"

humanize "github.com/dustin/go-humanize"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions lfr/pkg/cmd/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"os/exec"
"runtime"

"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"

"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/initb/initb.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/spf13/cobra"

"github.com/lgdd/liferay-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions lfr/pkg/cmd/logs/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"os"

"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/spf13/cobra"
)

Expand Down
32 changes: 16 additions & 16 deletions lfr/pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ package cmd
import (
"github.com/spf13/cobra"

"github.com/lgdd/liferay-cli/lfr/pkg/cmd/build"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/completion"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/create"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/deploy"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/diagnose"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/initb"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/logs"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/shell"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/start"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/status"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/stop"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/update"
"github.com/lgdd/liferay-cli/lfr/pkg/cmd/version"
"github.com/lgdd/liferay-cli/lfr/pkg/config"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/build"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/completion"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/create"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/deploy"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/diagnose"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/exec"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/initb"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/logs"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/shell"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/start"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/status"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/stop"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/update"
"github.com/lgdd/lfr-cli/lfr/pkg/cmd/version"
"github.com/lgdd/lfr-cli/lfr/pkg/config"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
)

var root = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion lfr/pkg/cmd/shell/gogo_shell_caller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"os"
"time"

"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
oi "github.com/reiver/go-oi"
telnet "github.com/reiver/go-telnet"
)
Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os"
"os/exec"

"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/procutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/procutil"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions lfr/pkg/cmd/status/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"runtime"

"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/procutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/procutil"
"github.com/spf13/cobra"
)

Expand Down
6 changes: 3 additions & 3 deletions lfr/pkg/cmd/stop/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"os/exec"
"runtime"

"github.com/lgdd/liferay-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/printutil"
"github.com/lgdd/liferay-cli/lfr/pkg/util/procutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/fileutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/printutil"
"github.com/lgdd/lfr-cli/lfr/pkg/util/procutil"
"github.com/spf13/cobra"
)

Expand Down
Loading

0 comments on commit 75bb827

Please sign in to comment.