Skip to content

Add completion for dependency-check.sh#2916

Merged
jeremylong merged 4 commits intomainfrom
add-completion
Oct 26, 2020
Merged

Add completion for dependency-check.sh#2916
jeremylong merged 4 commits intomainfrom
add-completion

Conversation

@jeremylong
Copy link
Copy Markdown
Collaborator

Add script for completion for dependency-check.sh so we can more easily select the correct arguments. After installing completion-for-dependency-check.sh (using source completion-for-dependency-check.sh) we can list the arguments using <tab><tab>. The following example lists all of the --disable* arguments:

$ ./dependency-check.sh --disable<tab><tab>
--disableArchive                      --disableCocoapodsAnalyzer            --disableNodeAuditCache               --disablePip
--disableAssembly                     --disableComposer                     --disableNodeJS                       --disablePipfile
--disableAutoconf                     --disableGolangDep                    --disableNugetconf                    --disablePyDist
--disableBundleAudit                  --disableGolangMod                    --disableNuspec                       --disablePyPkg
--disableCentral                      --disableJar                          --disableOpenSSL                      --disableRetireJS
--disableCentralCache                 --disableMixAudit                     --disableOssIndex                     --disableRubygems
--disableCmake                        --disableNodeAudit                    --disableOssIndexCache                --disableSwiftPackageManagerAnalyzer

Consider adding source <path>/completion-for-dependency-check.sh to your .bashrc if you use ODC a lot.

@jeremylong jeremylong added this to the 6.0.3 milestone Oct 23, 2020
@boring-cyborg boring-cyborg Bot added the cli changes to the cli label Oct 23, 2020
Comment thread cli/src/main/resources/completion-for-dependency-check.sh Outdated
@jeremylong jeremylong merged commit 5050aea into main Oct 26, 2020
@jeremylong jeremylong deleted the add-completion branch November 25, 2020 13:17
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cli changes to the cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant