Skip to content

Commit

Permalink
Ninja: added missing help description for "info" command
Browse files Browse the repository at this point in the history
  • Loading branch information
virgo47 committed Aug 25, 2022
1 parent 1d8e8e0 commit d997a34
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
package com.evolveum.midpoint.ninja.action;

import com.evolveum.midpoint.common.configuration.api.MidpointConfiguration;
import com.evolveum.midpoint.ninja.impl.InfoOptions;
import com.evolveum.midpoint.repo.api.RepositoryService;
import com.evolveum.midpoint.schema.LabeledString;
import com.evolveum.midpoint.schema.RepositoryDiag;
Expand All @@ -15,7 +16,7 @@
/**
* Short information about the currently used environment, including repository diagnostics.
*/
public class InfoRepositoryAction extends RepositoryAction<Object> {
public class InfoRepositoryAction extends RepositoryAction<InfoOptions> {

@Override
public void execute() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public enum Command {

KEYS("keys", ListKeysOptions.class, ListKeysRepositoryAction.class, null),

INFO("info", Object.class, InfoRepositoryAction.class, null),
INFO("info", InfoOptions.class, InfoRepositoryAction.class, null),

IMPORT_AUDIT("importAudit", ImportAuditOptions.class, ImportAuditRepositoryAction.class, null),

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Copyright (C) 2010-2022 Evolveum and contributors
*
* This work is dual-licensed under the Apache License 2.0
* and European Union Public License. See LICENSE file for details.
*/
package com.evolveum.midpoint.ninja.impl;

import com.beust.jcommander.Parameters;

@Parameters(resourceBundle = "messages", commandDescriptionKey = "info")
public class InfoOptions {
}
1 change: 1 addition & 0 deletions tools/ninja/src/main/resources/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export=Exports objects from midPoint
export.output=Output file for export
export.overwrite=Overwrite output file
export.skipids=Skips container ids
info=Shows information about the repository for the provided midPoint home
verify=Verify objects in midPoint repository
verify.warn=List of displayed warning categories, e.g. deprecated, plannedRemoval, uuid
passwordReset=Command will reset password of user specified by OID
Expand Down

0 comments on commit d997a34

Please sign in to comment.