ShadowKnightMK4 / OdinSearch

Search thru local computer files and feed matching output to a class that consumes it.
MIT License
1 stars 0 forks source link

Plans for parsing arguments on the command line #14

Closed ShadowKnightMK4 closed 10 months ago

ShadowKnightMK4 commented 10 months ago

Overview of plans to parse the command line. More of notes rather than strict requirements. Have unit tests for these too.

We need ways to set filename to check * we need ways to set how to compare ** struct ok. need to do it

We need ways to set directorypath to check * we need ways to set how to compare ** struct ok. need to do it

We need ways to set access time, creation time, date time to check we need ways to set how to compare

UPDATE: THIS PART HAS BEEN MOVED TO STRETCH GOAL We need a way to specify an external unmanaged plugin We need a way to specify some 'built-in' plugins UPDATE: THIS ABOVE PART AS BEEN MOVE TO STRETCH GOAL

We need a way to output the 3 ways stdout as unicode target file as uniciode target file as CSV

done as /outstream to specify where to write and /outformat to specify how to write to it. not tested yet.
ShadowKnightMK4 commented 10 months ago

Progress updates Added unit Tests for dealing with args:

Can now set outstream as stdout, stderr, quoted file and none quoted file. Not tested for spaces yet in non quoted file but figure receiving from command line will be an issue further up.

Can not specify if one wants unicode text output vs csv file formats. Regonized if an invalid argument is passed for arg.

Args so far added.

' /outfile=stdout, /outfile=stderr /outfile=filename /outfile="quotedname"

' /outformat=cvsfile. /outformat=unicode

ShadowKnightMK4 commented 10 months ago

Marking as closed for now unless arguments change. Should be able to be handled as of the most recent push to console front end.

ShadowKnightMK4 commented 10 months ago

Forgot file attribute. Those are the remaining thing.

ShadowKnightMK4 commented 10 months ago

Arg handling seems to be mostly complete but I need to ensure the edge cases are done well as well as an explicit default search target and anchor settings.

ShadowKnightMK4 commented 10 months ago

Moving the Plugin flags and (plugin in general ) to separate thing other than this. Marking this one closed for now due to seemingly done.