You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@chillyvee yes, moving these types into a public package would be fine!
jonathanpberger
changed the title
Structs in cmd folder are invisible to other programs
Structs in cmd folder should be visible to other programs.
Mar 21, 2023
There are many types defined in the cmd/horcrux/cmd directory which can't be integrated into other programs.
For example:
https://github.com/strangelove-ventures/horcrux/blob/main/cmd/horcrux/cmd/config.go#L543
Can't be referenced from a third party program.
For example we had to recreate the same struct in our program in order to utilize the same structures.
https://github.com/chillyvee/precrux/blob/master/snitch/generate.go#L22
Is it acceptable to extract all these types into https://github.com/strangelove-ventures/horcrux/horcrux/types.go
Or something else like that?
If so we can start to work on a PR. Guidance is welcome.
The text was updated successfully, but these errors were encountered: