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

mktemp: simplify file path parameter logic #3573

Merged
merged 1 commit into from
Jun 1, 2022

Commits on May 31, 2022

  1. mktemp: simplify file path parameter logic

    Simplify the logic of computing the file path parameters (the
    directory, prefix, suffix, and number of random characters) for the
    temporary file created by `mktemp`. This commits adds an `Options`
    struct as a layer of indirection between the application logic and
    `clap`, and a `Params` struct whose associated function is responsible
    for determining the file path parameters from the `Options`. This is
    an improvement because the previous code had some logic for
    determining file path parameters in one place and some in another
    place.
    jfinkels committed May 31, 2022
    Configuration menu
    Copy the full SHA
    43e9fb7 View commit details
    Browse the repository at this point in the history