Skip to content

Commit

Permalink
Update cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Jul 18, 2023
1 parent 07db528 commit a0f8211
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cmd/issuectl/finish.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

func initFinishCommand(rootCmd *cobra.Command) {
finishCmd := &cobra.Command{
Use: "finish",
Short: "finish",
Long: "",
Use: "finish [issue number]",
Short: "Cleanup resources and close issue",
Long: `Removes issue work directory. Closes issue in backend.`,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
PreRunE: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
Expand Down
6 changes: 3 additions & 3 deletions cmd/issuectl/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (

func initOpenPullRequestCommand(rootCmd *cobra.Command) {
openPRCmd := &cobra.Command{
Use: "openpr",
Use: "openpr [issue number]",
Short: "Opens a pull request for the specified issue",
Long: "This command opens a pull request for the specified issue on GitHub",
Args: cobra.ExactArgs(1), // it requires exactly one argument
Long: `This command opens a pull request for the specified issue on GitHub`, // FIXME: Github??
Args: cobra.ExactArgs(1), // it requires exactly one argument
RunE: func(cmd *cobra.Command, args []string) error {
issueID := args[0] // the first argument is the issue ID
err := issuectl.OpenPullRequest(issuectl.IssueID(issueID))
Expand Down
6 changes: 3 additions & 3 deletions cmd/issuectl/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ var repoList []string

func initStartCommand(rootCmd *cobra.Command) {
startCmd := &cobra.Command{
Use: "start",
Short: "start",
Long: "",
Use: "start [issue number]",
Short: "Start work on issue",
Long: `Create issue work directory. Clone all repositories from current profile. Create branches.`,
FParseErrWhitelist: cobra.FParseErrWhitelist{UnknownFlags: true},
PreRunE: func(cmd *cobra.Command, args []string) error {
if len(args) != 1 {
Expand Down

0 comments on commit a0f8211

Please sign in to comment.