Guomi.CLI (guomi v0.5.2)

Copy Markdown View Source

Command-line interface for Guomi cryptographic tools.

Usage

mix escript.build
./guomi <command> [options]

Commands

  • sm3 - Compute SM3 hash
  • sm4 - SM4 encryption/decryption
  • sm2 - SM2 key generation, sign/verify, encrypt/decrypt
  • version - Show version information
  • help - Show help message

Summary

Functions

Runs the escript entry point and converts unhandled errors to exit status 1.

Dispatches parsed command-line arguments. Primarily exposed for integration tests.

Functions

main(args)

@spec main([String.t()]) :: no_return() | :ok

Runs the escript entry point and converts unhandled errors to exit status 1.

run(list)

@spec run([String.t()]) :: no_return() | :ok

Dispatches parsed command-line arguments. Primarily exposed for integration tests.