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
[filegen] move devcontainer_util.go into package filegen; make tmplFS internal (#1190)
## Summary
This moves the `devcontainer_util.go` file into `filegen`. I didn't like
`impl` code calling into `boxcli/generate`. The direction should be
`boxcli` -> `impl` -> `{helper packages}`. Also, would be nice to keep
`boxcli` for `cobra.Command` logic.
We can now also make `filegen.TmplFS` internal i.e. `filegen.tmplFS`
Needed to create `filegen.EnvrcContent` since it was inlined in
`impl/devbox.go`.
**RFC**: Arguably, this is unrelated to the rest of `filegen` which has
to do with generating `flake.nix` and `scripts` files in aid of
`PrintEnv`. So, we can also move into its own self-contained package.
Let me know if that's preferable (and suggest a package name!)
## How was it tested?
compiles
0 commit comments