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

build: Allow codegen-only to produce the templated main.go #133

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

paulsmith
Copy link
Contributor

Fixes #131

@paulsmith paulsmith self-assigned this Oct 16, 2024
@paulsmith
Copy link
Contributor Author

paulsmith commented Oct 16, 2024

issues-131 $ pushup new

        //
     //  //      //////                        //
                //    //  //    //    //////  //////    //    //  //////
               //////    //    //  ////      //    //  //    //  //    //
              //        //    //      ////  //    //  //    //  //    //
             //          //////  //////    //    //    //////  //////
                                                              //
                                                             //

issues-131 $ pushup build -codegen-only

        //
     //  //      //////                        //
                //    //  //    //    //////  //////    //    //  //////
               //////    //    //  ////      //    //  //    //  //    //
              //        //    //      ////  //    //  //    //  //    //
             //          //////  //////    //    //    //////  //////
                                                              //
                                                             //

issues-131 $ tree
.
├── app
│   ├── layouts
│   │   └── default.up
│   ├── pages
│   │   └── index.up
│   ├── pkg
│   │   └── app.go
│   └── static
│       ├── htmx.min.js
│       └── style.css
├── build
│   ├── app.go
│   ├── cmd
│   │   └── myproject
│   │       └── main.go
│   ├── default.layout.up.go
│   ├── index.up.go
│   ├── pushup_support.go
│   ├── src
│   │   └── pages
│   │       └── index.up
│   └── static
│       ├── htmx.min.js
│       └── style.css
└── go.mod

12 directories, 14 files
issues-131 $ go build -C build ./cmd/myproject
issues-131 $ ls -lF build/myproject
-rwxr-xr-x  1 paulsmith  staff  8260370 Oct 16 12:31 build/myproject*

@paulsmith paulsmith merged commit c66ad90 into main Oct 16, 2024
1 check passed
@paulsmith paulsmith deleted the issues/131 branch October 16, 2024 17:35
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

Successfully merging this pull request may close these issues.

The -codegen-only flag does not generate cmd code.
1 participant