-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'cache prepare' command #67
Commits on May 18, 2022
-
test: add Aruba Cucumber testing
Configures the project for BDD-based acceptance testing with Aruba and Cucumber.
Configuration menu - View commit details
-
Copy full SHA for 0b71031 - Browse repository at this point
Copy the full SHA 0b71031View commit details -
...because, Freshli should be fresh, no? ;) Also updates GitHub Action tooling.
Configuration menu - View commit details
-
Copy full SHA for dd648b1 - Browse repository at this point
Copy the full SHA dd648b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e93d0a7 - Browse repository at this point
Copy the full SHA e93d0a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d254334 - Browse repository at this point
Copy the full SHA d254334View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2361362 - Browse repository at this point
Copy the full SHA 2361362View commit details -
refactor: move --output and --format to scan only
Eliminates some now-unnecessary inheritance with commands, wherein all commands would include the --output and --format options. Also updates more dependencies to the latest versions.
Configuration menu - View commit details
-
Copy full SHA for 6b8ef5a - Browse repository at this point
Copy the full SHA 6b8ef5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba6b96d - Browse repository at this point
Copy the full SHA ba6b96dView commit details -
feat: add 'cache' and 'cache prepare' commands
Implements the 'cache' command, which has a 'prepare' subcommand. At present, this does nothing.
Configuration menu - View commit details
-
Copy full SHA for 395dda7 - Browse repository at this point
Copy the full SHA 395dda7View commit details -
feat: add global --cache-dir option
Adds a --cache-dir global option with a default value of $HOME/.freshli, for storing temporary files.
Configuration menu - View commit details
-
Copy full SHA for 665542a - Browse repository at this point
Copy the full SHA 665542aView commit details -
bug: return code from ScanCommand.Run()
The ScanCommandRunner.Run() function returns an integer return code (0 if successful), and the invocation of ScanCommand.Run() expects a return code, but ScanCommand.Run() incorrectly is 'void'. This changes the return of Run() so it no longer drops this return code.
Configuration menu - View commit details
-
Copy full SHA for e6bdbaf - Browse repository at this point
Copy the full SHA e6bdbafView commit details -
feat: implement 'cache prepare' command
Creates the database file at the user-specified (or default) location for the cache, and/or migrates the existing file. If the file is corrupt, the command fails with a non-zero exit code.
Configuration menu - View commit details
-
Copy full SHA for c2a0637 - Browse repository at this point
Copy the full SHA c2a0637View commit details -
refactor test: make VerifyAlias test helper function generic
Tests for other commands will need to use the logic in VerifyAlias. This moves VerifyAlias to a new TestHelpers class, and makes the function generic, so it can be used with any System.CommandLine.Command class.
Configuration menu - View commit details
-
Copy full SHA for 7e390a0 - Browse repository at this point
Copy the full SHA 7e390a0View commit details -
test: --cache-dir global option
Tests for --cache-dir global option. This can only be tested on MainCommand directly, since the normal command building does not take place in the tests.
Configuration menu - View commit details
-
Copy full SHA for 3b2acfe - Browse repository at this point
Copy the full SHA 3b2acfeView commit details -
test: main command should not itself have a handler
The main command should not be runnable directly. Instead, one of its subcommands must be run instead. This test confirms that as true.
Configuration menu - View commit details
-
Copy full SHA for ec85307 - Browse repository at this point
Copy the full SHA ec85307View commit details -
test: 'cache' and 'cache prepare' commands
Confirms the following: * 'cache' is not directly runnable (no handler) * 'cache prepare' is runnable (has handler)
Configuration menu - View commit details
-
Copy full SHA for 673b2cc - Browse repository at this point
Copy the full SHA 673b2ccView commit details -
Cucumber now tests more specific statements within the --help output, rather than expecting a large exact block.
Configuration menu - View commit details
-
Copy full SHA for 2bbdc4f - Browse repository at this point
Copy the full SHA 2bbdc4fView commit details -
test: testing 'cache prepare' produces valid database
Ensures that 'cache prepare' creates the expected default folder, and generates an SQLite database file that passes SQLite's "PRAGMA integrity_check". NOTE: It is not feasible to test for pending migrations with cucumber.
Configuration menu - View commit details
-
Copy full SHA for a5e2f93 - Browse repository at this point
Copy the full SHA a5e2f93View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0cef7b2 - Browse repository at this point
Copy the full SHA 0cef7b2View commit details -
docs: update CONTRIBUTING.md to reflect new architecture
--format and --output are no longer shared between all commands, so all mentions of that are removed. Shows the correct inheritance for Commands now that BaseCommand<> has been removed. Adds mention of --cache-dir global argument. Documents the new cache command.
Configuration menu - View commit details
-
Copy full SHA for 3def57e - Browse repository at this point
Copy the full SHA 3def57eView commit details -
docs: fix various typos and formatting issues
Fixes misspelled words in README.md and CONTRIBUTING.md. Improves alignment of columns on Markdown representation of tables (thanks to JetBrains). Improves readability of command list in Program.cs, to make it easier for future developers to add their own. Reordered methods in Program.cs from outermost to innermost to make navigating the file a bit easier.
Configuration menu - View commit details
-
Copy full SHA for c30c59e - Browse repository at this point
Copy the full SHA c30c59eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 53bfbe4 - Browse repository at this point
Copy the full SHA 53bfbe4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd3f9e9 - Browse repository at this point
Copy the full SHA cd3f9e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 41634c8 - Browse repository at this point
Copy the full SHA 41634c8View commit details -
Adds in Ruby 3.1 using the same setup that's used to build the official Docker container. https://github.com/docker-library/ruby/blob/master/3.1/bullseye/Dockerfile
Configuration menu - View commit details
-
Copy full SHA for ea0f906 - Browse repository at this point
Copy the full SHA ea0f906View commit details -
Reduces duplication within option/argument helper methods
Also changes the name of the methods to make it more clear that a value is being retrieved, not an option/argument.
Configuration menu - View commit details
-
Copy full SHA for 937af35 - Browse repository at this point
Copy the full SHA 937af35View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd8ffdd - Browse repository at this point
Copy the full SHA dd8ffddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3319499 - Browse repository at this point
Copy the full SHA 3319499View commit details -
Reduces duplication between test methods
Switches to using `MethodData` and `TheoryData` to represent the set of data to test. This approach is used instead of the `[InlineData]` attribute because the `ArgumentArity` values are not technically constants, and only constant values can be parameters to attributes.
Configuration menu - View commit details
-
Copy full SHA for 287ea21 - Browse repository at this point
Copy the full SHA 287ea21View commit details -
fix: eliminate use of environment variable for --cache-dir
Environment variables on Linux do not persist between process executions, so this was not actually enabling the 'dotnet ef' tool to work with non-standard locations. Removing all use of the environment variable to simplify code.
Configuration menu - View commit details
-
Copy full SHA for 7477441 - Browse repository at this point
Copy the full SHA 7477441View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5090d35 - Browse repository at this point
Copy the full SHA 5090d35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07de1d8 - Browse repository at this point
Copy the full SHA 07de1d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 484dc87 - Browse repository at this point
Copy the full SHA 484dc87View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9485cf - Browse repository at this point
Copy the full SHA b9485cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for c09b05c - Browse repository at this point
Copy the full SHA c09b05cView commit details -
Removes extraneous configuration
This was erroneously left over after the collect and submit steps were separated.
Configuration menu - View commit details
-
Copy full SHA for 071f6c2 - Browse repository at this point
Copy the full SHA 071f6c2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f1d82e - Browse repository at this point
Copy the full SHA 9f1d82eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e626d46 - Browse repository at this point
Copy the full SHA e626d46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 849617b - Browse repository at this point
Copy the full SHA 849617bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d294b3 - Browse repository at this point
Copy the full SHA 2d294b3View commit details