zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
108 stars 85 forks source link

New 'zos-jobs search jobs' command #2043

Closed KevinLoesch1 closed 4 months ago

KevinLoesch1 commented 4 months ago

What It Does Adds a new zowe zos-jobs search job command. This allows the user to search a job or jobs spool files for a specified string or regular expression.

How to Test The command requires a job name, or wildcard, and either the --search-string or --search-regex parameter. For example, to search for the string 'RC=0000' in all jobs starting with 'TESTJOB' you would use the following command:

zowe zos-jobs search job 'TESTJOB*' --search-string 'RC=0000'

Review Checklist I certify that I have:

codecov[bot] commented 4 months ago

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (40b2adc) 91.07% compared to head (e79a0cb) 91.05%. Report is 2 commits behind head on next.

Files Patch % Lines
packages/zosjobs/src/SearchJobs.ts 86.56% 9 Missing :warning:
packages/cli/src/zosjobs/search/job/Job.handler.ts 88.23% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #2043 +/- ## ========================================== - Coverage 91.07% 91.05% -0.02% ========================================== Files 634 638 +4 Lines 18517 18610 +93 Branches 3838 3856 +18 ========================================== + Hits 16864 16946 +82 - Misses 1652 1663 +11 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 4 months ago

Quality Gate Failed Quality Gate failed

Failed conditions
27.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

zFernand0 commented 4 months ago

Thanks for adding a couple of new unit tests for these APIs 😋