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: hide password when starting cli #1870

Merged
merged 1 commit into from
Dec 29, 2023
Merged

fix: hide password when starting cli #1870

merged 1 commit into from
Dec 29, 2023

Conversation

Kree0
Copy link
Contributor

@Kree0 Kree0 commented Dec 25, 2023

Required checklist

  • Sample config files updated (config,meta/config and default config)
  • If there are user-facing changes, the documentation needs to be updated prior to approving the PR( Link )
  • If there are any breaking changes to public APIs, please add the api change label.
  • Signed CLA (if not already signed)

Which issue does this PR close?

#1867

Rationale for this change

Are there any user-facing changes?

@roseboy-liu roseboy-liu merged commit 122a63c into cnosdb:main Dec 29, 2023
7 checks passed
@Kree0 Kree0 deleted the pwd branch January 2, 2024 09:46
@Benxiaohai001
Copy link
Member

➜  cnosdb git:(LTS/2.3) ✗ ./2.3/release/cnosdb-cli -u u001 -p 123
error: unrecognized subcommand '123'

Usage: cnosdb-cli [OPTIONS] [COMMAND]

For more information, try '--help'.
➜  cnosdb git:(LTS/2.3) ✗ ./2.3/release/cnosdb-cli -u u001 -p    
CnosDB CLI v2.3.4
Input arguments: CliArgs { subcommand: None, host: "localhost", port: 8902, user: "u001", password: true, private_key_path: None, database: "public", tenant: "cnosdb", precision: None, target_partitions: None, stream_trigger_interval: None, data_path: None, receive_data_encoding: None, send_data_encoding: None, file: [], rc: None, format: Table, quiet: false, write_line_protocol: None, use_ssl: false, use_unsafe_ssl: false, cacert: [], chunked: false, error_stop: false, process_cli_command: false }
password: 
public ❯ \d
Query took 0.341 seconds.
public ❯ 

version:cnosdb 2.3.4, revision 8269f8f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants