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

[Proposal] Add 'iocli show alias' command to print all alias under current project. #128

Open
LaurenceLiZhixin opened this issue Aug 24, 2022 · 0 comments

Comments

@LaurenceLiZhixin
Copy link
Collaborator

LaurenceLiZhixin commented Aug 24, 2022

Example:
As we have a project contains the file: pkg/servier/impl.go

// +ioc:autowire=true
// +ioc:autowire:type=singleton
// +ioc:autowire:alias=impl1

type ServiceImpl struct{
}

// +ioc:autowire=true
// +ioc:autowire:alias=interface1

type Service interface{
}
# iocli show alias
===
Interface Alias:
pkg/servier/impl.go :: Service -> interface1
===
Struct Alias:
pkg/servier/impl.go :: ServiceImpl -> impl1
pkg/servier/impl2.go :: ServiceImpl2 -> impl2
...
===

The interface alias is mentionted in #127.

Using iocli show alias comman to help developers to quickly get the target struct/interface alias name.

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