You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should be able to break apart the options of our program:
These are examples but get the idea across
For things like utility functions so that each of you can test your parts.
pdf2inspec parse myfile.pdf --raw -o RawUncleanFile.txt pdf2inspec parse http://link.com/myfile.pdf -o cleanfile.txt pdf2inspec test parselet pdf2inspec test csv_parser
pdf2inspec xls2hash --xlsx=</path/to/file.xslx>
Or whatever options we think makes sense. We should also setup the standard pattern of the workflow. In my mind it would be something like:
For the main program, I am open to suggestions here as to what the best user experience is.
However, we do have to keep in mind that in the end this will be part of a CI/CD pipeline so we have to have everything work over CLI passing in data from either files or http locations. We can start with file locations.
tell inspec to run the command inspec init profile mybenchmark in the given location and return the path of the controls directory that is created. ( note: I think if we look at the Thor cli for InSpec we should be able to find out which commands to call directly rather than invoking a shell command )
A. delete the example.rb control file from the controls directory
parse our two given files
start the converter passing the data from (2) and the path from (1)
Parse and create
Report that it created the profile 'myBenchark', processing 'X' controls
We should be able to break apart the options of our program:
These are examples but get the idea across
For things like utility functions so that each of you can test your parts.
pdf2inspec parse myfile.pdf --raw -o RawUncleanFile.txt
pdf2inspec parse http://link.com/myfile.pdf -o cleanfile.txt
pdf2inspec test parselet
pdf2inspec test csv_parser
pdf2inspec xls2hash --xlsx=</path/to/file.xslx>
Or whatever options we think makes sense. We should also setup the standard pattern of the workflow. In my mind it would be something like:
For the main program, I am open to suggestions here as to what the best user experience is.
However, we do have to keep in mind that in the end this will be part of a CI/CD pipeline so we have to have everything work over CLI passing in data from either files or http locations. We can start with file locations.
Which would:
inspec init profile mybenchmark
in the given location and return the path of the controls directory that is created. ( note: I think if we look at the Thor cli for InSpec we should be able to find out which commands to call directly rather than invoking a shell command )A. delete the example.rb control file from the controls directory
See: https://github.com/erikhuda/thor/wiki/Getting-Started
see: https://www.bounga.org/ruby/2011/09/12/thor-a-command-line-scripting-tool/
The text was updated successfully, but these errors were encountered: