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

Clarify API/documentation #9

Open
adaszko opened this issue Jul 31, 2023 · 2 comments
Open

Clarify API/documentation #9

adaszko opened this issue Jul 31, 2023 · 2 comments

Comments

@adaszko
Copy link
Contributor

adaszko commented Jul 31, 2023

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.

@epage
Copy link
Contributor

epage commented Jul 31, 2023

Rename “home” to “workdir” because it can be confused with an actual home directory and result in overwritten configuration files.

Except we are treating it as the home directory.

btw this is a list of proposed solutions without a description of the problem. In the future, please focus on the problem though you are welcome to provide suggested solutions. We just need to keep in mind the context of what we are working in and what the actual goal is.

@adaszko
Copy link
Contributor Author

adaszko commented Aug 1, 2023

Rename “home” to “workdir” because it can be confused with an actual home directory and result in overwritten configuration files.

Except we are treating it as the home directory.

btw this is a list of proposed solutions without a description of the problem. In the future, please focus on the problem though you are welcome to provide suggested solutions. We just need to keep in mind the context of what we are working in and what the actual goal is.

The problem is that I accidentally obliterated my .zshenv. I thought that was clear from the previous issue:

#6 (comment):

Mind creating an issue on how we can clarify this?

In any case, I updated the issue description.

@adaszko adaszko closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2023
@epage epage reopened this Aug 2, 2023
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

No branches or pull requests

2 participants