Skip to content

Commit

Permalink
chore: disable web commands (#4403)
Browse files Browse the repository at this point in the history
* chore: disable web commands

* typos

* hide

* `make lint-fix`

(cherry picked from commit 6863788)

# Conflicts:
#	ignite/pkg/cosmosutil/gentx.go
  • Loading branch information
julienrbrt authored and mergify[bot] committed Nov 14, 2024
1 parent 0155415 commit 1d4f2dd
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
7 changes: 4 additions & 3 deletions ignite/cmd/generate_composables.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (

func NewGenerateComposables() *cobra.Command {
c := &cobra.Command{
Use: "composables",
Short: "TypeScript frontend client and Vue 3 composables",
RunE: generateComposablesHandler,
Hidden: true, // hidden util we have a better ts-client.
Use: "composables",
Short: "TypeScript frontend client and Vue 3 composables",
RunE: generateComposablesHandler,
}

c.Flags().AddFlagSet(flagSetYes())
Expand Down
7 changes: 4 additions & 3 deletions ignite/cmd/generate_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ import (

func NewGenerateHooks() *cobra.Command {
c := &cobra.Command{
Use: "hooks",
Short: "TypeScript frontend client and React hooks",
RunE: generateHooksHandler,
Hidden: true, // hidden util we have a better ts-client.
Use: "hooks",
Short: "TypeScript frontend client and React hooks",
RunE: generateHooksHandler,
}

c.Flags().AddFlagSet(flagSetYes())
Expand Down
5 changes: 3 additions & 2 deletions ignite/cmd/generate_typescript_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ const (

func NewGenerateTSClient() *cobra.Command {
c := &cobra.Command{
Use: "ts-client",
Short: "TypeScript frontend client",
Hidden: true, // hidden util we have a better ts-client.
Use: "ts-client",
Short: "TypeScript frontend client",
Long: `Generate a framework agnostic TypeScript client for your blockchain project.
By default the TypeScript client is generated in the "ts-client/" directory. You
Expand Down
1 change: 1 addition & 0 deletions ignite/cmd/scaffold_react.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
// NewScaffoldReact scaffolds a React app for a chain.
func NewScaffoldReact() *cobra.Command {
c := &cobra.Command{
Hidden: true, // hidden util we have a better ts-client.
Use: "react",
Short: "React web app template",
Args: cobra.NoArgs,
Expand Down
1 change: 1 addition & 0 deletions ignite/cmd/scaffold_vue.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
// NewScaffoldVue scaffolds a Vue.js app for a chain.
func NewScaffoldVue() *cobra.Command {
c := &cobra.Command{
Hidden: true, // hidden util we have a better ts-client.
Use: "vue",
Short: "Vue 3 web app template",
Args: cobra.NoArgs,
Expand Down
9 changes: 9 additions & 0 deletions ignite/pkg/cosmosutil/gentx.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,19 @@ import (
"os"

sdkmath "cosmossdk.io/math"
<<<<<<< HEAD

Check failure on line 9 in ignite/pkg/cosmosutil/gentx.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest)

missing import path
"github.com/cometbft/cometbft/crypto/ed25519"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/ignite/cli/v28/ignite/pkg/errors"
=======

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/cometbft/cometbft/crypto/ed25519"

"github.com/ignite/cli/v29/ignite/pkg/errors"
>>>>>>> 68637881 (chore: disable web commands (#4403))
)

type (
Expand Down

0 comments on commit 1d4f2dd

Please sign in to comment.