Skip to content
Merged
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
4 changes: 4 additions & 0 deletions cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ var (
rawFormat bool
logJobName string
logServiceName string
logServiceId string
)

var logCmd = &cobra.Command{
Expand Down Expand Up @@ -43,6 +44,8 @@ func getLogs() string {
}

switch {
case logServiceId != "":
service = &utils.Service{ID: utils.Id(logServiceId)}
case applicationName != "":
app, err := getApplicationContextResource(client, applicationName, envID)
if err != nil {
Expand Down Expand Up @@ -126,4 +129,5 @@ func init() {
logCmd.Flags().StringVarP(&databaseName, "database", "d", "", "Database Name")
logCmd.Flags().StringVarP(&logJobName, "job", "j", "", "Job Name")
logCmd.Flags().StringVarP(&logServiceName, "service", "s", "", "Service Name")
logCmd.Flags().StringVarP(&logServiceId, "service-id", "", "", "Service ID (UUID) - skips name lookup, use when you already have the ID from a console URL")
}
Loading