+
Skip to content

CLI: mask sensitive ENV values #2658

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

billy1624
Copy link
Member

PR Info

cargo r -- generate entity -h

  • Before:
    $ cargo r -- generate entity -h
    Compiling sea-orm-cli v1.2.0-rc.1
        Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.38s
        Running `target\debug\sea-orm-cli generate entity -h`
    Generate entity
    
    Usage: sea-orm-cli generate entity [OPTIONS] --database-url <DATABASE_URL>
    
    Options:
    ...
    -u, --database-url <DATABASE_URL>
            Database URL [env: DATABASE_URL=mysql://root:root@localhost]
    ...
    
  • After:
    $ cargo r -- generate entity -h
    Compiling sea-orm-cli v1.2.0-rc.1
        Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.95s
        Running `target\debug\sea-orm-cli generate entity -h`
    Generate entity
    
    Usage: sea-orm-cli generate entity [OPTIONS] --database-url <DATABASE_URL>
    
    Options:
    ...
    -u, --database-url <DATABASE_URL>
            Database URL [env: DATABASE_URL]
    ...
    

cargo r -- migrate -h

  • Before:
    $ cargo r -- migrate -h
        Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
        Running `target\debug\sea-orm-cli migrate -h`
    Migration related commands
    
    Usage: sea-orm-cli migrate [OPTIONS] [COMMAND]
    
    Options:
    ...
    -u, --database-url <DATABASE_URL>
            Database URL [env: DATABASE_URL=mysql://root:root@localhost]
    ...
    
  • After:
    $ cargo r -- migrate -h
    Compiling sea-orm-cli v1.2.0-rc.1
        Finished `dev` profile [unoptimized + debuginfo] target(s) in 22.20s
        Running `target\debug\sea-orm-cli migrate -h`
    Migration related commands
    
    Usage: sea-orm-cli migrate [OPTIONS] [COMMAND]
    
    Options:
    ...
    -u, --database-url <DATABASE_URL>
            Database URL [env: DATABASE_URL]
    ...
    

cargo r -- migrate

  • Before:
    $ cargo r -- migrate
    Compiling sea-orm-cli v1.2.0-rc.1
        Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.02s
        Running `target\debug\sea-orm-cli migrate`
    Running `cargo run --manifest-path ./migration/Cargo.toml -- up -u mysql://root:root@localhost`
    
  • After:
    $ cargo r -- migrate
    Compiling sea-orm-cli v1.2.0-rc.1
        Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.04s
        Running `target\debug\sea-orm-cli migrate`
    Running `cargo run --manifest-path ./migration/Cargo.toml -- up`
    

@billy1624 billy1624 marked this pull request as ready for review July 10, 2025 12:20
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.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载