Nick Dumas
0cd02774ed
Using a map to guarantee uniqueness of error output
2 years ago
Nick Dumas
8bfc7c5268
Marginally better output.
2 years ago
Nick Dumas
e7838f414c
cleaning up the markdown output
2 years ago
Nick Dumas
42275369e0
viper binding now flows into subcommands
2 years ago
Nick Dumas
2a99d4681e
using strings for format, trying to use viper
2 years ago
Nick Dumas
eff142bf03
Implementing prettier printing of validation errors
...
First pass was JSON output.
2 years ago
Nick Dumas
9bf9e2f2ef
Cleaning up more error handling
2 years ago
Nick Dumas
6be36326bb
More sanity stuff
2 years ago
Nick Dumas
03f810acbd
better error output and required flags
2 years ago
Nick Dumas
dc453d7539
Validate now walks recursively
...
need to figure out a good way to collect the errors
2 years ago
Nick Dumas
b3f04d1452
Upgrading to a walkfunc
2 years ago
Nick Dumas
b6b4eda80b
Adding proper error handling.
2 years ago
Nick Dumas
d421ca4995
Refactoring validation code out of cmd/
2 years ago
Nick Dumas
5b93acf9ab
Nicer error output
2 years ago
Nick Dumas
61b85fd9ba
not keeping these in here
2 years ago
Nick Dumas
e3fc79a785
Removing dead code.
2 years ago
Nick Dumas
114d67874c
validate can now read remote schemas
...
and also resolve remote refs within those schemas. so now i can write
proper, composable/reusable stuff
2 years ago
Nick Dumas
30f3093f22
Naming things is hard
2 years ago
Nick Dumas
b6cd9100a5
expanding the schemas
2 years ago
Nick Dumas
6bd6a8406e
Validation works as expected.
2 years ago
Nick Dumas
d8a1510a73
output says validation is successful. more testing needed
2 years ago
Nick Dumas
7f1951947a
Implement validation command
...
I just need to fill base.schema with the simplest possible test case now
2 years ago
Nick Dumas
436c553894
drafting more lipgloss stuff
2 years ago
Nick Dumas
a0461d9e6b
Implementing lipgloss into help/usage output
...
it took a long long time and doesn't seem to look very good when using
borders.
2 years ago
Nick Dumas
dd222fe847
whatever
2 years ago
Nick Dumas
cd9d4829a8
named error types
2 years ago
Nick Dumas
bc70a6ca28
Terminate is now a proper nil Node
2 years ago
Nick Dumas
aedc41a021
Proper synchronization.
2 years ago
Nick Dumas
b91c1ebf6e
Implement a walkFunc that feeds filenames into a channel
...
now i can lazily process them, fan them out, whatever
2 years ago
Nick Dumas
369ad63f28
working demo of FSM implementation
2 years ago
Nick Dumas
110753ef52
Big refactor, trying to implement an FSM
2 years ago
Nick Dumas
ab32890495
more refactoring
2 years ago
Nick Dumas
78eabd4391
Rename AttachmentMover, add dev flag, more
2 years ago
Nick Dumas
d47b2da530
these are necessary for the test cases to work
2 years ago
Nick Dumas
22649b8b68
Attachments map now maps filenames to full files
2 years ago
Nick Dumas
6eddfc2dae
Whoops, wrong interpolation variable
2 years ago
Nick Dumas
70e9a934af
Using correct regexp function
...
I knew FindAll was too simple
2 years ago
Nick Dumas
3c82c4da63
Refactoring logging a bit
...
mostly busywork, but i'm trying to make myself remember that With()
exists for when things start getting more complicated
2 years ago
Nick Dumas
e2b8f08ef1
This is redundant now
2 years ago
Nick Dumas
3a7bf5a486
Forgot how to spell module names
2 years ago
Nick Dumas
e9c209fdcd
Updating go.mod for actual deployability
2 years ago
Nick Dumas
c44a7c08ea
ugh
2 years ago
Nick Dumas
2c9b84bb6c
ugh
2 years ago
Nick Dumas
069e769972
starting to refactor
2 years ago
Nick Dumas
93d401d954
tweaking log message
2 years ago
Nick Dumas
afc310ba6e
extractAttachments is now implemented
...
I realized I needed to keep track of three lists: Attachments, Notes,
and Posts. Notes and Posts both contain links to attachments but have
radically different folder structures.
2 years ago
Nick Dumas
f7cd824968
Inject logging before starting any work
2 years ago
Nick Dumas
f9cbca8f74
Parameterizing my walkFuncs.
2 years ago
Nick Dumas
7fe6b81982
Refactored more code out of main(). Added logging.
...
In the interest of more granular logging, I refactored the walk func
into three functions that each work to gather one set of data.
Added a bunch of logging for sanity
2 years ago
Nick Dumas
4d12633e08
first draft
2 years ago