package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var getCmd = &cobra.Command{
Use: "get",
Short: "Retrieves multiple issues based on the provided identifiers",
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
return fmt.Errorf("please specify the issue identifier to retrieve details from")
}
for _, issueID := range args {
issue, err := jiraController.GetIssue(issueID, nil)
if err != nil {
return nil
}
// Set output
output, outputExpanded = issue.ID, issue
}
return nil
},
}
|
The pages are generated with Golds v0.3.2. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |