Skip to content

Clarify API/documentation #9

Description

@adaszko

Continuing discussion at #6 (comment)

The problem: By construing the home parameter as my actual $HOME directory, I accidentally overwrote the .zshenv file in it because completest creates a file of such a name there unconditionally. I think it’s a papercut that it would be nice to clarify.

The suggested solution:

  1. Deprecate/remove new() because more specific names tend to be more descriptive (IMO, of course).
  2. Rename “home” to “workdir” because it can be confused with an actual home directory and result in overwritten configuration files.
  3. Add a new constructor with_temp_workdir(bin_root) that creates a temporary workdir automatically.
  4. Probably also rename bin_root to something like shell_binary_dir_path.

EDIT: Clarify the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions