Open bazmurphy opened 8 months ago
Thanks, yes i wasn't sure...
I need to understand this cmd/root.go
and cmd.Execute()
pattern and why it is used, so I will look into it
Looking good so far, you can look into using other packages to simplify your workflow. Specifically https://github.com/spf13/cobra which is pretty much industry standard, we use it at slack and also k8s kubectl is built using it.
Thank you @berkeli
I have made adjustments based on your feedback
I know I have not yet fulfilled the extensions (stretch goals):
go-ls
- tests & extra flags
go-cat
- multiple filenames
Before I use external helper packages I like to know how to do the fundamentals myself (even if basic) in case I need to understand it elsewhere later down the line
I will bookmark the cobra
package you linked and take a look later, it is important since it is used at slack
It's looking good so far, great job!
had a go to implement most (not all) of the feedback still have to write tests for this... but that is predicated on being very comfortable with dependency injection and interfaces would like some live discussion/help with this if possible
Learners, PR Template
Self checklist
For Mentor Review | {Project Name} | {My Name}
Description
This is my first attempt at
Prep
project 02
cli-files
Change list
Not applicable (initial commit)
Rationale, briefly
What is the goal of these changes? Not applicable (initial commit)
How did these changes address this goal or goals? Not applicable (initial commit)
Why are they a good idea? Not applicable (initial commit)
@mentions, #links
Who needs to know about this? @mention them @illicitonion Daniel
Is this related to another issue, PR, or repo? #link them Not applicable (initial commit)