Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Ckip 85, 86 & 88 dive discord and help issues #44

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
5 changes: 3 additions & 2 deletions cli/commands/bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ func NewBridgeCmd(diveContext *common.DiveContext) *cobra.Command {
var bridgeCmd = &cobra.Command{
Use: "bridge",
Short: "Command for cross chain communication between two different chains",
Long: `To connect two different chains using any of the supported cross chain communication protocols. This will create an relay to connect two different chains and pass any messages between them.`,
Long: `To connect two different chains using any of the supported cross chain communication protocols.
This will create an relay to connect two different chains and pass any messages between them.`,
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
Expand All @@ -41,7 +42,7 @@ func btpBridgeCmd(diveContext *common.DiveContext) *cobra.Command {

var btpbridgeCmd = &cobra.Command{
Use: "btp",
Short: "Starts Bridge BTP between ChainA and Chain B",
Short: "Starts BTP Bridge between ChainA and ChainB",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
if len(args) != 0 {
Expand Down
10 changes: 6 additions & 4 deletions cli/commands/chain/chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ func NewChainCmd(diveContext *common.DiveContext) *cobra.Command {
var chainCmd = &cobra.Command{

Use: "chain",
Short: "Build, initialize and start a given blockchain node.",
Long: `The command builds, initializes, and starts a specified blockchain node, providing a seamless setup process. It encompasses compiling and configuring the
necessary dependencies and components required for the blockchain network. By executing this command, the node is launched, enabling network participation, transaction
processing, and ledger maintenance within the specified blockchain ecosystem.`,
Short: "Build, initialize and start a given blockchain node",
Long: `The command builds, initializes, and starts a specified blockchain node, providing a seamless setup process.
It encompasses compiling and configuring the necessary dependencies and components required for the blockchain network.
By executing this command, the node is launched, enabling network participation, transaction processing, and ledger
maintenance within the specified blockchain ecosystem.`,

Run: func(cmd *cobra.Command, args []string) {
cmd.Help()

Expand Down
4 changes: 2 additions & 2 deletions cli/commands/chain/types/eth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ func NewEthCmd(diveContext *common.DiveContext) *cobra.Command {
var ethCmd = &cobra.Command{
Use: "eth",
Short: "Build, initialize and start a eth node.",
Long: `The command starts an Ethereum node, initiating the process of setting up and launching a local Ethereum network. It establishes a connection to the Ethereum
network and allows the node in executing smart contracts and maintaining the decentralized ledger.`,
Long: `The command starts an Ethereum node, initiating the process of setting up and launching a local Ethereum network.
It establishes a connection to the Ethereum network and allows the node in executing smart contracts and maintaining the decentralized ledger.`,
Run: func(cmd *cobra.Command, args []string) {

if len(args) != 0 {
Expand Down
4 changes: 2 additions & 2 deletions cli/commands/chain/types/hardhat.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ func NewHardhatCmd(diveContext *common.DiveContext) *cobra.Command {
var ethCmd = &cobra.Command{
Use: "hardhat",
Short: "Build, initialize and start a hardhat node.",
Long: `The command starts an hardhat node, initiating the process of setting up and launching a local hardhat network. It establishes a connection to the hardhat
network and allows the node in executing smart contracts and maintaining the decentralized ledger.`,
Long: `The command starts an hardhat node, initiating the process of setting up and launching a local hardhat network.
It establishes a connection to the hardhat network and allows the node in executing smart contracts and maintaining the decentralized ledger.`,
Run: func(cmd *cobra.Command, args []string) {

if len(args) != 0 {
Expand Down
12 changes: 6 additions & 6 deletions cli/commands/chain/types/icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ func NewIconCmd(diveContext *common.DiveContext) *cobra.Command {
var iconCmd = &cobra.Command{
Use: "icon",
Short: "Build, initialize and start a icon node.",
Long: `The command starts an Icon node, initiating the process of setting up and launching a local Icon network. It establishes a connection to the Icon
network and allows the node in executing smart contracts and maintaining the decentralized ledger.`,
Long: `The command starts an Icon node, initiating the process of setting up and launching a local Icon network.
It establishes a connection to the Icon network and allows the node in executing smart contracts and maintaining the decentralized ledger.`,
Run: func(cmd *cobra.Command, args []string) {

if len(args) != 0 {
Expand Down Expand Up @@ -143,10 +143,10 @@ network and allows the node in executing smart contracts and maintaining the dec
},
}

iconCmd.Flags().StringVarP(&id, "id", "i", "", "chain id")
iconCmd.Flags().StringVarP(&genesis, "genesis", "g", "", "gen file")
iconCmd.Flags().StringVarP(&configFilePath, "config", "c", "", "gen file")
iconCmd.Flags().BoolP("decentralisation", "d", false, "Decentralise Icon Node")
iconCmd.Flags().StringVarP(&id, "id", "i", "", "custom chain id for icon node")
iconCmd.Flags().StringVarP(&genesis, "genesis", "g", "", "path to custom genesis file")
iconCmd.Flags().StringVarP(&configFilePath, "config", "c", "", "path to custom config json file")
iconCmd.Flags().BoolP("decentralisation", "d", false, "decentralise Icon Node")

decentralisationCmd := IconDecentralisationCmd(diveContext)

Expand Down
7 changes: 4 additions & 3 deletions cli/commands/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import (
"github.com/spf13/cobra"
)

const diveURL = "https://discord.com/channels/1097522975630184469/1124224608250376293"
const diveURL = "https://discord.gg/tgbKGsGE"

// discordCmd redirects users to DIVE discord channel
var DiscordCmd = &cobra.Command{
Use: "discord",
Short: "Opens DIVE discord channel",
Long: `The command opens the Discord channel for DIVE, providing a direct link or launching the Discord application to access the dedicated DIVE community. It allows
users to engage in discussions, seek support, share insights, and collaborate with other members of the DIVE community within the Discord platform.`,
Long: `The command opens the Discord channel for DIVE, providing a direct link or launching the Discord application
to access the dedicated DIVE community. It allows users to engage in discussions, seek support, share insights, and
collaborate with other members of the DIVE community within the Discord platform.`,
Run: func(cmd *cobra.Command, args []string) {
logrus.Info("Redirecting to DIVE discord channel...")
if err := common.OpenFile(diveURL); err != nil {
Expand Down
5 changes: 3 additions & 2 deletions cli/commands/tutorial/tutorial.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ const tutorialURL = "https://www.youtube.com/@hugobyte"
var TutorialCmd = &cobra.Command{
Use: "tutorial",
Short: "Opens DIVE tutorial youtube playlist",
Long: `The command opens the YouTube playlist containing DIVE tutorials. It launches a web browser or the YouTube application, directing users to a curated collection of
tutorial videos specifically designed to guide and educate users about DIVE. The playlist offers step-by-step instructions, tips, and demonstrations to help users better understand and utilize the features and functionalities of DIVE.`,
Long: `The command opens the YouTube playlist containing DIVE tutorials. It launches a web browser or the YouTube application,
directing users to a curated collection of tutorial videos specifically designed to guide and educate users about DIVE. The playlist
offers step-by-step instructions, tips, and demonstrations to help users better understand and utilize the features and functionalities of DIVE.`,
Run: func(cmd *cobra.Command, args []string) {
logrus.Info("Redirecting to YouTube...")
if err := common.OpenFile(tutorialURL); err != nil {
Expand Down
6 changes: 4 additions & 2 deletions cli/commands/twitter/twitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ const twitterURL = "https://twitter.com/hugobyte"
var TwitterCmd = &cobra.Command{
Use: "twitter",
Short: "Opens official HugoByte twitter home page",
Long: `The command opens the official HugoByte Twitter homepage. It launches a web browser and directs users to the designated Twitter profile of HugoByte, providing
access to the latest updates, announcements, news, and insights shared by the official HugoByte Twitter account. Users can stay informed about HugoByte's activities, engage with the community, and follow our social media presence directly from the Twitter homepage.`,
Long: `The command opens the official HugoByte Twitter homepage. It launches a web browser and directs users
to the designated Twitter profile of HugoByte, providing access to the latest updates, announcements, news, and insights
shared by the official HugoByte Twitter account. Users can stay informed about HugoByte's activities, engage with the
community, and follow our social media presence directly from the Twitter homepage.`,
Run: func(cmd *cobra.Command, args []string) {
logrus.Info("Redirecting to twitter...")
if err := common.OpenFile(twitterURL); err != nil {
Expand Down