Skip to content

Commit

Permalink
chore: enable zealy claim
Browse files Browse the repository at this point in the history
  • Loading branch information
mj committed Jun 5, 2024
1 parent 15c6c85 commit 217a320
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 190 deletions.
68 changes: 0 additions & 68 deletions internal/engine/command/zealy/import_winners.go

This file was deleted.

95 changes: 0 additions & 95 deletions internal/engine/command/zealy/import_winners_test.go

This file was deleted.

34 changes: 7 additions & 27 deletions internal/engine/command/zealy/zealy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
)

const (
CommandName = "zealy"
ClaimCommandName = "claim"
StatusCommandName = "status"
ImportWinnersCommandName = "import-winners"
HelpCommandName = "help"
CommandName = "zealy"
ClaimCommandName = "claim"
StatusCommandName = "status"
HelpCommandName = "help"
)

type Zealy struct {
Expand All @@ -29,7 +28,7 @@ func NewZealy(
}

func (z *Zealy) GetCommand() command.Command {
/*subCmdClaim := command.Command{
subCmdClaim := command.Command{
Name: ClaimCommandName,
Desc: "Claim your Zealy Reward",
Help: "",
Expand All @@ -43,7 +42,7 @@ func (z *Zealy) GetCommand() command.Command {
SubCommands: nil,
AppIDs: command.AllAppIDs(),
Handler: z.claimHandler,
}*/
}

subCmdStatus := command.Command{
Name: StatusCommandName,
Expand All @@ -65,26 +64,7 @@ func (z *Zealy) GetCommand() command.Command {
Handler: nil,
}

//cmdZealy.AddSubCommand(subCmdClaim)
cmdZealy.AddSubCommand(subCmdClaim)
cmdZealy.AddSubCommand(subCmdStatus)

// only accessible from cli
subCmdImportWinners := command.Command{
Name: ImportWinnersCommandName,
Desc: "Import Zealy winners using csv file",
Help: "",
Args: []command.Args{
{
Name: "path",
Desc: "CSV file path",
Optional: false,
},
},
SubCommands: nil,
AppIDs: []command.AppID{command.AppIdCLI},
Handler: z.importWinnersHandler,
}

cmdZealy.AddSubCommand(subCmdImportWinners)
return cmdZealy
}

0 comments on commit 217a320

Please sign in to comment.