Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NASA-PDS/registry-mgr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.0
Choose a base ref
...
head repository: NASA-PDS/registry-mgr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Aug 22, 2024

  1. Bump commons-cli:commons-cli from 1.4 to 1.9.0 (#98)

    Bumps commons-cli:commons-cli from 1.4 to 1.9.0.
    
    ---
    updated-dependencies:
    - dependency-name: commons-cli:commons-cli
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 22, 2024
    Copy the full SHA
    4e869f4 View commit details
  2. Copy the full SHA
    354c3b4 View commit details

Commits on Aug 27, 2024

  1. Copy the full SHA
    7db145c View commit details
  2. Copy the full SHA
    26a45f9 View commit details

Commits on Sep 13, 2024

  1. Update branch-cicd.yaml

    jordanpadams authored Sep 13, 2024
    Copy the full SHA
    3e25f66 View commit details
  2. Bump org.apache.maven.plugins:maven-site-plugin

    Bumps [org.apache.maven.plugins:maven-site-plugin](https://github.com/apache/maven-site-plugin) from 4.0.0-M15 to 4.0.0-M16.
    - [Release notes](https://github.com/apache/maven-site-plugin/releases)
    - [Commits](apache/maven-site-plugin@maven-site-plugin-4.0.0-M15...maven-site-plugin-4.0.0-M16)
    
    ---
    updated-dependencies:
    - dependency-name: org.apache.maven.plugins:maven-site-plugin
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Sep 13, 2024
    Copy the full SHA
    d2f3c48 View commit details
  3. Merge pull request #99 from NASA-PDS/dependabot_fixes

    Bump commons-cli:commons-cli from 1.4 to 1.9.0 (#98)
    jordanpadams authored Sep 13, 2024
    Copy the full SHA
    0f73e80 View commit details
  4. Update changelog

    pdsen-ci committed Sep 13, 2024
    Copy the full SHA
    5fce757 View commit details
  5. Merge pull request #103 from NASA-PDS/dependabot/maven/org.apache.mav…

    …en.plugins-maven-site-plugin-4.0.0-M16
    
    Bump org.apache.maven.plugins:maven-site-plugin from 4.0.0-M15 to 4.0.0-M16
    jordanpadams authored Sep 13, 2024
    Copy the full SHA
    acadf32 View commit details
  6. Update changelog

    pdsen-ci committed Sep 13, 2024
    Copy the full SHA
    e666d25 View commit details

Commits on Oct 11, 2024

  1. update CLI help (#105)

    Co-authored-by: Al Niessner <Al.Niessner@xxx.xxx>
    al-niessner and Al Niessner authored Oct 11, 2024
    Copy the full SHA
    39e7c6e View commit details
  2. Update changelog

    pdsen-ci committed Oct 11, 2024
    Copy the full SHA
    881b696 View commit details

Commits on Oct 16, 2024

  1. upgrade registry-common dependency

    thomas loubrieu committed Oct 16, 2024
    Copy the full SHA
    9afcda6 View commit details
  2. Update changelog

    pdsen-ci committed Oct 16, 2024
    Copy the full SHA
    49a5691 View commit details
  3. Update requirements

    pdsen-ci committed Oct 16, 2024
    Copy the full SHA
    3d39900 View commit details
  4. Update changelog

    pdsen-ci committed Oct 16, 2024
    Copy the full SHA
    20b198d View commit details
  5. Update requirements

    pdsen-ci committed Oct 16, 2024
    Copy the full SHA
    e5628b5 View commit details
  6. Update changelog

    pdsen-ci committed Oct 16, 2024
    Copy the full SHA
    991afa0 View commit details
  7. Copy the full SHA
    a2a6162 View commit details
  8. Copy the full SHA
    d4409df View commit details

Commits on Nov 12, 2024

  1. make stable dependency for registry-common

    thomas loubrieu committed Nov 12, 2024
    Copy the full SHA
    a30625e View commit details
  2. Update changelog

    pdsen-ci committed Nov 12, 2024
    Copy the full SHA
    716b940 View commit details
  3. Update requirements

    pdsen-ci committed Nov 12, 2024
    Copy the full SHA
    50f8837 View commit details
  4. Update changelog

    pdsen-ci committed Nov 12, 2024
    Copy the full SHA
    82b2ad0 View commit details
  5. Copy the full SHA
    604a0d1 View commit details
  6. Copy the full SHA
    cee9e10 View commit details

Commits on Nov 14, 2024

  1. changes for new pattern in log4j

    Al Niessner authored and Al Niessner committed Nov 14, 2024
    Copy the full SHA
    d03dda2 View commit details

Commits on Dec 2, 2024

  1. Merge pull request #110 from NASA-PDS/harvest_203

    changes for new pattern in log4j
    jordanpadams authored Dec 2, 2024
    Copy the full SHA
    688357c View commit details
  2. Update changelog

    pdsen-ci committed Dec 2, 2024
    Copy the full SHA
    bf5eff8 View commit details

Commits on Dec 10, 2024

  1. squelch slf4j (#119)

    Co-authored-by: Al Niessner <Al.Niessner@xxx.xxx>
    al-niessner and Al Niessner authored Dec 10, 2024
    Copy the full SHA
    6e4b3e0 View commit details
  2. Update changelog

    pdsen-ci committed Dec 10, 2024
    Copy the full SHA
    3c9fb3e View commit details

Commits on Dec 11, 2024

  1. update exception to message handling (#118)

    Co-authored-by: Al Niessner <Al.Niessner@xxx.xxx>
    al-niessner and Al Niessner authored Dec 11, 2024
    Copy the full SHA
    57d86f7 View commit details
  2. Update changelog

    pdsen-ci committed Dec 11, 2024
    Copy the full SHA
    a6fdae4 View commit details

Commits on Dec 12, 2024

  1. process the args better

    Al Niessner authored and Al Niessner committed Dec 12, 2024
    Copy the full SHA
    2c2101a View commit details
  2. Merge pull request #123 from NASA-PDS/issue_121

    Improve `list-dd` CLI command argument handling
    jordanpadams authored Dec 12, 2024
    Copy the full SHA
    4692d60 View commit details
  3. Update changelog

    pdsen-ci committed Dec 12, 2024
    Copy the full SHA
    6a7e38f View commit details

Commits on Dec 16, 2024

  1. derandomize count (#116)

    Co-authored-by: Al Niessner <Al.Niessner@xxx.xxx>
    al-niessner and Al Niessner authored Dec 16, 2024
    Copy the full SHA
    faf70c4 View commit details
  2. Update changelog

    pdsen-ci committed Dec 16, 2024
    Copy the full SHA
    986e799 View commit details
  3. Add SLOC count to scans

    jordanpadams authored Dec 16, 2024
    Copy the full SHA
    3c4b2b3 View commit details
  4. Update changelog

    pdsen-ci committed Dec 16, 2024
    Copy the full SHA
    8e2f185 View commit details
  5. upgrade to registry-common latest dev version

    thomas loubrieu committed Dec 16, 2024
    Copy the full SHA
    91ef2ea View commit details
  6. Update changelog

    pdsen-ci committed Dec 16, 2024
    Copy the full SHA
    ca01cc8 View commit details

Commits on Dec 19, 2024

  1. make registry-common dependency stable

    thomas loubrieu committed Dec 19, 2024
    Copy the full SHA
    aeed969 View commit details
  2. Update changelog

    pdsen-ci committed Dec 19, 2024
    Copy the full SHA
    f6dfb90 View commit details
  3. Update requirements

    pdsen-ci committed Dec 19, 2024
    Copy the full SHA
    cf37dd4 View commit details
  4. Update changelog

    pdsen-ci committed Dec 19, 2024
    Copy the full SHA
    bb386e9 View commit details
  5. Copy the full SHA
    6e464e7 View commit details
  6. Copy the full SHA
    90b7630 View commit details

Commits on Jan 10, 2025

  1. Copy the full SHA
    67b6806 View commit details
  2. Update changelog

    pdsen-ci committed Jan 10, 2025
    Copy the full SHA
    ea3f60f View commit details
Showing with 336 additions and 63 deletions.
  1. +1 −1 .github/workflows/branch-cicd.yaml
  2. +28 −0 .github/workflows/codeql-analysis.yml
  3. +62 −0 CHANGELOG.md
  4. +38 −0 docs/requirements/v5.0.0/REQUIREMENTS.md
  5. +38 −0 docs/requirements/v5.0.1/REQUIREMENTS.md
  6. +38 −0 docs/requirements/v5.0.2/REQUIREMENTS.md
  7. +50 −0 docs/requirements/v5.0.3/REQUIREMENTS.md
  8. +10 −4 pom.xml
  9. +3 −1 src/main/java/gov/nasa/pds/registry/mgr/RegistryManagerCli.java
  10. +9 −0 src/main/java/gov/nasa/pds/registry/mgr/cmd/CliCommand.java
  11. +3 −9 src/main/java/gov/nasa/pds/registry/mgr/cmd/data/DeleteDataCmd.java
  12. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/data/ExportDataCmd.java
  13. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/data/ExportFileCmd.java
  14. +8 −7 src/main/java/gov/nasa/pds/registry/mgr/cmd/data/SetArchiveStatusCmd.java
  15. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/data/UpdateAltIdsCmd.java
  16. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/dd/DeleteDDCmd.java
  17. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/dd/ExportDDCmd.java
  18. +10 −5 src/main/java/gov/nasa/pds/registry/mgr/cmd/dd/ListDDCmd.java
  19. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/dd/LoadDDCmd.java
  20. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/dd/UpgradeDDCmd.java
  21. +5 −5 src/main/java/gov/nasa/pds/registry/mgr/cmd/reg/CreateRegistryCmd.java
  22. +3 −3 src/main/java/gov/nasa/pds/registry/mgr/cmd/reg/DeleteRegistryCmd.java
  23. +7 −5 src/main/java/gov/nasa/pds/registry/mgr/cmd/reg/FetchRegistryCmd.java
  24. +2 −2 src/main/java/gov/nasa/pds/registry/mgr/util/log/Log4jConfigurator.java
2 changes: 1 addition & 1 deletion .github/workflows/branch-cicd.yaml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ jobs:
with:
lfs: true
fetch-depth: 0
token: ${{secrets.ADMIN_GITHUB_TOKEN}}
token: ${{secrets.ADMIN_GITHUB_TOKEN || github.token}}
-
name: 💵 Maven Cache
uses: actions/cache@v4
28 changes: 28 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -94,3 +94,31 @@ jobs:
with:
name: codeql-artifacts
path: ${{ env.RESULTS_DIR }}


sloc-count:
name: SLOC Count
runs-on: ubuntu-latest
if: github.actor != 'pdsen-ci'
steps:
-
name: 💳 Checkout
uses: actions/checkout@v4
with:
lfs: true
fetch-depth: 0
token: ${{secrets.ADMIN_GITHUB_TOKEN}}

-
name: Count Lines of Code (cloc)
uses: djdefi/cloc-action@6
with:
options: --report-file=cloc.md


-
name: Upload SLOC
uses: actions/upload-artifact@v4
with:
name: sloc-count
path: ${{ github.workspace }}/cloc.md
62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# Changelog

## [5.0.3](https://github.com/NASA-PDS/registry-mgr/tree/5.0.3) (2025-01-10)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/v5.0.4...5.0.3)

**Improvements:**

- Quiet SLF4J log message from end user [\#117](https://github.com/NASA-PDS/registry-mgr/issues/117)

**Defects:**

- Getting null message in log with option packageId [\#124](https://github.com/NASA-PDS/registry-mgr/issues/124) [[s.low](https://github.com/NASA-PDS/registry-mgr/labels/s.low)]
- Unable to update archive status of a lidvid in the registry [\#107](https://github.com/NASA-PDS/registry-mgr/issues/107) [[s.critical](https://github.com/NASA-PDS/registry-mgr/labels/s.critical)]

## [v5.0.4](https://github.com/NASA-PDS/registry-mgr/tree/v5.0.4) (2024-12-19)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/v5.0.3...v5.0.4)

**Requirements:**

- As a user, I want to update a bundle and associated collections' and products' archive status given a bundle lidvid [\#112](https://github.com/NASA-PDS/registry-mgr/issues/112)
- As a user, I want to change the archive status for a collection and it's associated products given a collection lidvid [\#113](https://github.com/NASA-PDS/registry-mgr/issues/113)

**Defects:**

- `[ERROR] Need to fill this out when have a return value` when trying to execute `list-dd` command [\#122](https://github.com/NASA-PDS/registry-mgr/issues/122) [[s.medium](https://github.com/NASA-PDS/registry-mgr/labels/s.medium)]
- `Missing required property 'FieldValue.<variant value>'` error when running with `list-dd` command [\#121](https://github.com/NASA-PDS/registry-mgr/issues/121) [[s.high](https://github.com/NASA-PDS/registry-mgr/labels/s.high)]
- set-archive-status does not update the same number of products each time with packageId argument [\#115](https://github.com/NASA-PDS/registry-mgr/issues/115) [[s.high](https://github.com/NASA-PDS/registry-mgr/labels/s.high)]
- registry-mgr return ERROR null [\#111](https://github.com/NASA-PDS/registry-mgr/issues/111) [[s.high](https://github.com/NASA-PDS/registry-mgr/labels/s.high)]
- archive status does not change for all bundle members [\#109](https://github.com/NASA-PDS/registry-mgr/issues/109) [[s.high](https://github.com/NASA-PDS/registry-mgr/labels/s.high)]

## [v5.0.3](https://github.com/NASA-PDS/registry-mgr/tree/v5.0.3) (2024-11-12)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/release/5.0.3...v5.0.3)

## [release/5.0.3](https://github.com/NASA-PDS/registry-mgr/tree/release/5.0.3) (2024-11-12)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/v5.0.2...release/5.0.3)

## [v5.0.2](https://github.com/NASA-PDS/registry-mgr/tree/v5.0.2) (2024-10-16)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/release/5.0.2...v5.0.2)

## [release/5.0.2](https://github.com/NASA-PDS/registry-mgr/tree/release/5.0.2) (2024-10-16)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/v5.0.1...release/5.0.2)

## [v5.0.1](https://github.com/NASA-PDS/registry-mgr/tree/v5.0.1) (2024-10-16)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/release/5.0.1...v5.0.1)

## [release/5.0.1](https://github.com/NASA-PDS/registry-mgr/tree/release/5.0.1) (2024-10-16)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/v5.0.0...release/5.0.1)

**Defects:**

- Update inline help to match latest features [\#104](https://github.com/NASA-PDS/registry-mgr/issues/104) [[s.high](https://github.com/NASA-PDS/registry-mgr/labels/s.high)]

## [v5.0.0](https://github.com/NASA-PDS/registry-mgr/tree/v5.0.0) (2024-08-27)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/release/5.0.0...v5.0.0)

## [release/5.0.0](https://github.com/NASA-PDS/registry-mgr/tree/release/5.0.0) (2024-08-27)

[Full Changelog](https://github.com/NASA-PDS/registry-mgr/compare/v4.6.3...release/5.0.0)
38 changes: 38 additions & 0 deletions docs/requirements/v5.0.0/REQUIREMENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Requirements Summary
====================

# default

## As a registry user, I want to search on ref_lid_* from the registry metadata ([#50](https://github.com/NASA-PDS/registry-mgr/issues/50))


This requirement is not impacted by the current version
## As a user I want to delete whole bundles at once ([#52](https://github.com/NASA-PDS/registry-mgr/issues/52))


This requirement is not impacted by the current version
## As a user, I want to query OpenSearch for staged data via a CLI command ([#59](https://github.com/NASA-PDS/registry-mgr/issues/59))


This requirement is not impacted by the current version
## As a user, I want to manually update a product's file location (file_ref) ([#76](https://github.com/NASA-PDS/registry-mgr/issues/76))


This requirement is not impacted by the current version
## As a user, I want to set archive-status using packageId ([#69](https://github.com/NASA-PDS/registry-mgr/issues/69))


This requirement is not impacted by the current version
## As a registry manager, I want to update the OpenSearch schema from the latest LDD properties types. ([#74](https://github.com/NASA-PDS/registry-mgr/issues/74))


This requirement is not impacted by the current version
## As a user, I want to specify the list of products to be deleted from a file ([#77](https://github.com/NASA-PDS/registry-mgr/issues/77))


This requirement is not impacted by the current version
## As a user, I want to delete all products in my node registry ([#80](https://github.com/NASA-PDS/registry-mgr/issues/80))


This requirement is not impacted by the current version
38 changes: 38 additions & 0 deletions docs/requirements/v5.0.1/REQUIREMENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Requirements Summary
====================

# default

## As a registry user, I want to search on ref_lid_* from the registry metadata ([#50](https://github.com/NASA-PDS/registry-mgr/issues/50))


This requirement is not impacted by the current version
## As a user I want to delete whole bundles at once ([#52](https://github.com/NASA-PDS/registry-mgr/issues/52))


This requirement is not impacted by the current version
## As a user, I want to query OpenSearch for staged data via a CLI command ([#59](https://github.com/NASA-PDS/registry-mgr/issues/59))


This requirement is not impacted by the current version
## As a user, I want to manually update a product's file location (file_ref) ([#76](https://github.com/NASA-PDS/registry-mgr/issues/76))


This requirement is not impacted by the current version
## As a user, I want to set archive-status using packageId ([#69](https://github.com/NASA-PDS/registry-mgr/issues/69))


This requirement is not impacted by the current version
## As a registry manager, I want to update the OpenSearch schema from the latest LDD properties types. ([#74](https://github.com/NASA-PDS/registry-mgr/issues/74))


This requirement is not impacted by the current version
## As a user, I want to specify the list of products to be deleted from a file ([#77](https://github.com/NASA-PDS/registry-mgr/issues/77))


This requirement is not impacted by the current version
## As a user, I want to delete all products in my node registry ([#80](https://github.com/NASA-PDS/registry-mgr/issues/80))


This requirement is not impacted by the current version
38 changes: 38 additions & 0 deletions docs/requirements/v5.0.2/REQUIREMENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

Requirements Summary
====================

# default

## As a registry user, I want to search on ref_lid_* from the registry metadata ([#50](https://github.com/NASA-PDS/registry-mgr/issues/50))


This requirement is not impacted by the current version
## As a user I want to delete whole bundles at once ([#52](https://github.com/NASA-PDS/registry-mgr/issues/52))


This requirement is not impacted by the current version
## As a user, I want to query OpenSearch for staged data via a CLI command ([#59](https://github.com/NASA-PDS/registry-mgr/issues/59))


This requirement is not impacted by the current version
## As a user, I want to manually update a product's file location (file_ref) ([#76](https://github.com/NASA-PDS/registry-mgr/issues/76))


This requirement is not impacted by the current version
## As a user, I want to set archive-status using packageId ([#69](https://github.com/NASA-PDS/registry-mgr/issues/69))


This requirement is not impacted by the current version
## As a registry manager, I want to update the OpenSearch schema from the latest LDD properties types. ([#74](https://github.com/NASA-PDS/registry-mgr/issues/74))


This requirement is not impacted by the current version
## As a user, I want to specify the list of products to be deleted from a file ([#77](https://github.com/NASA-PDS/registry-mgr/issues/77))


This requirement is not impacted by the current version
## As a user, I want to delete all products in my node registry ([#80](https://github.com/NASA-PDS/registry-mgr/issues/80))


This requirement is not impacted by the current version
50 changes: 50 additions & 0 deletions docs/requirements/v5.0.3/REQUIREMENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@

Requirements Summary
====================

# default

## As a user, I want to change the archive status for a collection and it's associated products given a collection lidvid ([#113](https://github.com/NASA-PDS/registry-mgr/issues/113))


This requirement is not impacted by the current version
## As a user, I want to update a bundle and associated collections' and products' archive status given a bundle lidvid ([#112](https://github.com/NASA-PDS/registry-mgr/issues/112))


This requirement is not impacted by the current version
## As a registry user, I want to search on ref_lid_* from the registry metadata ([#50](https://github.com/NASA-PDS/registry-mgr/issues/50))


This requirement is not impacted by the current version
## As a user I want to delete whole bundles at once ([#52](https://github.com/NASA-PDS/registry-mgr/issues/52))


This requirement is not impacted by the current version
## As a user, I want to query OpenSearch for staged data via a CLI command ([#59](https://github.com/NASA-PDS/registry-mgr/issues/59))


This requirement is not impacted by the current version
## As a user, I want to manually update a product's file location (file_ref) ([#76](https://github.com/NASA-PDS/registry-mgr/issues/76))


This requirement is not impacted by the current version
## As a user, I want to set archive-status using packageId ([#69](https://github.com/NASA-PDS/registry-mgr/issues/69))


This requirement is not impacted by the current version
## As a registry manager, I want to update the OpenSearch schema from the latest LDD properties types. ([#74](https://github.com/NASA-PDS/registry-mgr/issues/74))


This requirement is not impacted by the current version
## As a user, I want to specify the list of products to be deleted from a file ([#77](https://github.com/NASA-PDS/registry-mgr/issues/77))


This requirement is not impacted by the current version
## As a user, I want to delete all products in my node registry ([#80](https://github.com/NASA-PDS/registry-mgr/issues/80))


This requirement is not impacted by the current version
## As a user, I want to delete a list of products in an efficient way ([#120](https://github.com/NASA-PDS/registry-mgr/issues/120))


This requirement is not impacted by the current version
14 changes: 10 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.

<groupId>gov.nasa.pds</groupId>
<artifactId>registry-manager</artifactId>
<version>4.7.0-SNAPSHOT</version>
<version>5.1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<name>PDS Registry Manager</name>
@@ -72,13 +72,13 @@ POSSIBILITY OF SUCH DAMAGE.
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.4</version>
<version>1.9.0</version>
</dependency>
<!-- Registry Common library-->
<dependency>
<groupId>gov.nasa.pds</groupId>
<artifactId>registry-common</artifactId>
<version>2.0.0</version>
<version>2.0.3</version>
</dependency>
<!-- JSON parser -->
<dependency>
@@ -92,6 +92,12 @@ POSSIBILITY OF SUCH DAMAGE.
<artifactId>opencsv</artifactId>
<version>5.9</version>
</dependency>
<!-- Silence SLF4J messages (NASA-PDS/registry-mgr:117) -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-nop</artifactId>
<version>2.0.16</version>
</dependency>
</dependencies>

<build>
@@ -153,7 +159,7 @@ POSSIBILITY OF SUCH DAMAGE.
<!-- Disable Site for now -->
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>4.0.0-M15</version>
<version>4.0.0-M16</version>
<configuration>
<skip>true</skip>
<skipDeploy>true</skipDeploy>
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ private boolean parse(String[] pArgs)
}
catch(ParseException ex)
{
System.out.println("[ERROR] " + ex.getMessage());
System.out.println("[ERROR] " + ExceptionUtils.getMessage(ex));
return false;
}
}
@@ -274,6 +274,8 @@ private void initOptions()

bld = Option.builder("es").hasArg().argName("url");
options.addOption(bld.build());
bld = Option.builder("registry").hasArg().argName("url");
options.addOption(bld.build());

bld = Option.builder("auth").hasArg().argName("file");
options.addOption(bld.build());
9 changes: 9 additions & 0 deletions src/main/java/gov/nasa/pds/registry/mgr/cmd/CliCommand.java
Original file line number Diff line number Diff line change
@@ -17,4 +17,13 @@ public interface CliCommand
* @throws Exception an exception
*/
public void run(CommandLine cmdLine) throws Exception;
public static String getUsersRegistry (CommandLine cmdLine) {
if (cmdLine.hasOption("registry")) {
return cmdLine.getOptionValue("registry");
} else if (cmdLine.hasOption("es")) {
return cmdLine.getOptionValue("es");
} else {
throw new RuntimeException("Must provide -registry on the command line. See usuage for more details.");
}
}
}
Loading