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

Displaying the nearest matching/all available project names when no --project is found #118

Open
schlagelk opened this issue Dec 21, 2020 · 1 comment

Comments

@schlagelk
Copy link

Hi!

Right now, if you pass xclogparser the --project option and give it an incorrect project name, LogFinder throws an error

    Error. There is no directory for the project \(name) in the DerivedData
    folder in \(derivedDataDir.path). Please specify the path to the xcactivitylog
    with --file or the right DerivedData folder with --derived_data

Would it be possible to include in the message the nearest matching/all projects available in the DerivedData directory? I would find this helpful if, for example, I incorrectly enter a --project name and don't easily have the ability to inspect the DerivedData directory.

Happy to submit a PR if so, just curious if that's intentionally been omitted and if this would be welcomed. Also - love the project - and thanks for publishing it!

@BalestraPatrick
Copy link
Collaborator

I think the reason we don't do this is because the derived data directory could also be often customized, so we would we have no idea where exactly it could be and where we to look for similar directories. I'll ask @ecamacho for a second opinion on this.

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