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

finding wake source files of a particular package name #1424

Open
mmjconolly opened this issue Sep 21, 2023 · 0 comments
Open

finding wake source files of a particular package name #1424

mmjconolly opened this issue Sep 21, 2023 · 0 comments

Comments

@mmjconolly
Copy link
Contributor

mmjconolly commented Sep 21, 2023

Sometimes a wake package is split across multiple directories, or it has a name that is difficult to guess where in the directory hierarchy it might be. Inherently, a wake package name doesn't have to hint anything about where it's located.

Say we have package foo somewhere in a directory structure like:

$ tree
.
├── foo
│   └── baa
│       └── abc
└── jjj
    └── bbb
        └── foo-utils

Is package foo in foo/ or in jjj/bbb/foo-utils? or both? nither?

It could be nice to have some way to query where package files live, for example:

$ wake --find-package-files foo
./foo/important.wake
./foo/helpers.wake
./jjj/bbb/foo-utils/extras.wake

We can do this today with a shell snippet like:

$ find . -name '*.wake' | xargs egrep '^\s*package foo\s*$'
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

1 participant