Closed hay-kot closed 1 month ago
The changes involve enhancements to command handling and configuration within the scaffold application. Key modifications include the introduction of new structures and fields in various command files, adjustments to method signatures for improved flexibility, and the removal of certain global flags. The main.go
file has been updated to associate specific flags with the new
command, while a new environment variable has been added to the test scripts.
File Path | Change Summary |
---|---|
app/commands/cmd_list.go | Introduced FlagsList struct with OutputDir . Updated List method signature to accept FlagsList . |
app/commands/cmd_new.go | Expanded FlagsNew struct with new fields. Added OutputFS method. Updated New and fuzzyFallBack method signatures. |
app/commands/controller.go | Removed fields NoClobber , Force , OutputDir . Removed OutputFS method. |
app/commands/resolve.go | Updated resolve method signature to include outputdir and force parameters. |
app/commands/runner.go | Added options field of type scaffold.Options to runconf struct. |
main.go | Removed global flags; added them to new command. Introduced cwd flag for list command. |
tests/nested-snapshot.test.sh | Modified command-line argument order in script. |
tests/runner.sh | Introduced SCAFFOLD_CACHE environment variable and updated comments. |
sequenceDiagram
participant User
participant CLI
participant Controller
participant Runner
User->>CLI: Execute command
CLI->>Controller: Call List/ New with Flags
Controller->>Runner: Run scaffold with options
Runner-->>Controller: Return result
Controller-->>CLI: Output result
CLI-->>User: Display result
🐇 In the code we hop and play,
New flags and structs pave the way.
With every change, our paths align,
In the scaffold world, we brightly shine!
🌟 Let's build and run, oh what a day!
For every command, we find our way!
🛠️✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Moves
--no-clobber
--force
--output-dir
under the
new
command, where they are used.Summary by CodeRabbit
New Features
cwd
flag for thelist
command and improved error handling in thenew
command.Bug Fixes
Chores