xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.14k stars 782 forks source link

How can we run some utils tool like bin2c from command line? #5607

Closed Freed-Wu closed 2 months ago

Freed-Wu commented 2 months ago

Is your feature request related to a problem? Please describe.

Run utils tools from command line

Describe the solution you'd like

xmake lua utils.bin2c('XXX')

Describe alternatives you've considered

No response

Additional context

No response

star-hengxing commented 2 months ago
$ xmake l private.utils.bin2c -h
Print c/c++ code files from the given binary file.

Usage: xmake l private.utils.bin2c [options]

Options:

    -h, --help                                Print this help message and exit.

    -w LINEWIDTH, --linewidth=LINEWIDTH       Set the line width
        --nozeroend                           Disable to patch zero terminating character
    -i BINARYPATH, --binarypath=BINARYPATH    Set the binary file path.
    -o OUTPUTPATH, --outputpath=OUTPUTPATH    Set the output file path.
Freed-Wu commented 2 months ago

Thanks!