Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

add project name detection #96

Closed
kadel opened this issue Jun 21, 2022 · 0 comments · Fixed by #101
Closed

add project name detection #96

kadel opened this issue Jun 21, 2022 · 0 comments · Fixed by #101
Assignees

Comments

@kadel
Copy link
Member

kadel commented Jun 21, 2022

One of the information that tools are going to require from users is the project name.
Tooling will usually ask users to provide a name. But It would be nice if Alizer provides project name detection that could be used as the default project name.

It would be nice if Alizer provides a function that detects the project name from the information (source code) available. (maybe something like recognizer.SuggestName(path))

Most of the languages already have a place that contains the project name.

  • JavaScript: name field in package.json
  • Java (Maven): artifactId in pom.xml

If Alizer can't detect the project name or the language ecosystem doesn't have a standard way to define a name fallback would be the directory name.

the related odo issue redhat-developer/odo#5847

@lstocchi lstocchi self-assigned this Jul 4, 2022
lstocchi added a commit to lstocchi/alizer that referenced this issue Jul 6, 2022
lstocchi added a commit that referenced this issue Jul 14, 2022
* feat: retrieve project name when doing component detection (#96)

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>

* add tests

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>

* add gradle proj name detection

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>

* update doc

Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants