Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(jans-cli): --schema option renamed to --schema-sample #8739

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jans-cli-tui/cli_tui/cli/config_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def read_swagger(op_mode):
parser.add_argument("--endpoint-args",
help="Arguments to pass endpoint separated by comma. For example limit:5,status:INACTIVE")

parser.add_argument("--schema", help="Get sample json schema")
parser.add_argument("--schema-sample", help="Get sample json schema template")

parser.add_argument("-CC", "--config-api-mtls-client-cert", help="Path to SSL Certificate file")
parser.add_argument("-CK", "--config-api-mtls-client-key", help="Path to SSL Key file")
Expand Down Expand Up @@ -1102,7 +1102,7 @@ def help_for(self, op_name):
schema_path_string = '{}{}'.format(mode_suffix, os.path.basename(schema_path))
if ' ' in schema_path_string:
schema_path_string = '\"{}\"'.format(schema_path_string)
print("To get sample schema type {0}{2} --schema <schema>, for example {0}{2} --schema {1}".format(sys.argv[0], schema_path_string, scim_arg))
print("To get sample schema type {0}{2} --schema-sample <schema>, for example {0}{2} --schema-sample {1}".format(sys.argv[0], schema_path_string, scim_arg))

def render_json_entry(self, val):
if isinstance(val, str) and val.startswith('_file '):
Expand Down