Skip to content

Commit b4bdf47

Browse files
deprecate: mark ListAllowedValuesCommand as deprecated
The list-allowed-values functionality has been migrated to metaschema-cli. This deprecates the oscal-cli version with a notice directing users to the new command location. The import will be updated from liboscal-java to metaschema-java core in a follow-up once the metaschema-java dependency is updated.
1 parent 75986f3 commit b4bdf47

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/java/dev/metaschema/oscal/tools/cli/core/commands/ListAllowedValuesCommand.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@
6363
/**
6464
* A CLI command that provides a listing of allowed values constraints by
6565
* targeted node.
66+
*
67+
* @deprecated Use the {@code list-allowed-values} command in
68+
* {@code metaschema-cli} instead. This command will be removed in a
69+
* future release.
6670
*/
71+
@Deprecated(since = "3.0.0")
6772
@SuppressWarnings("PMD.CouplingBetweenObjects")
6873
public class ListAllowedValuesCommand
6974
extends AbstractTerminalCommand {
@@ -89,7 +94,8 @@ public String getName() {
8994

9095
@Override
9196
public String getDescription() {
92-
return "List allowed values constraints for the provided Metaschema module";
97+
return "[Deprecated: use metaschema-cli list-allowed-values] "
98+
+ "List allowed values constraints for the provided Metaschema module";
9399
}
94100

95101
@SuppressWarnings("null")

0 commit comments

Comments
 (0)