Skip to content

Commit

Permalink
Use sys_get_temp_dir() as default cache dir (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
techi602 authored and sspooky13 committed Feb 4, 2024
1 parent 129210e commit ad5bf97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Changelog

## [Unreleased]
### Changed
- [#78] Use system temp dir as default cache dir instead of root of project, Thanks to [@techi602]

## [8.0.1]
### Fixed
- [#76] Files path service: only use GLOB_BRACE when available

## [8.0.0] - 2023-02-26
Expand Down Expand Up @@ -239,11 +242,13 @@ patchesJson6902:
- create base command to check yaml sort
- create `--diff` mode

[@techi602]: https://github.com/techi602
[@ChrisDBrown]: https://github.com/ChrisDBrown
[@boris-brtan]: https://github.com/boris-brtan
[@DavidOstrozlik]: https://github.com/DavidOstrozlik
[@PetrHeinz]: https://github.com/PetrHeinz

[#78]: https://github.com/sspooky13/yaml-standards/pull/78
[#76]: https://github.com/sspooky13/yaml-standards/issues/76
[#72]: https://github.com/sspooky13/yaml-standards/issues/72
[#71]: https://github.com/sspooky13/yaml-standards/issues/71
Expand Down
2 changes: 1 addition & 1 deletion src/Command/YamlCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protected function configure(): void
->setDescription('Check yaml files respect standards')
->addArgument(self::ARGUMENT_PATH_TO_CONFIG_FILE, InputArgument::OPTIONAL, 'Path to configuration file. By default configuration file is looking in root directory', './yaml-standards.yaml')
->addOption(self::OPTION_FIX, null, InputOption::VALUE_NONE, 'Automatically fix problems')
->addOption(self::OPTION_PATH_TO_CACHE_DIR, null, InputOption::VALUE_REQUIRED, 'Custom path to cache dir', '/')
->addOption(self::OPTION_PATH_TO_CACHE_DIR, null, InputOption::VALUE_REQUIRED, 'Custom path to cache dir', sys_get_temp_dir() . '/')
->addOption(self::OPTION_DISABLE_CACHE, null, InputOption::VALUE_NONE, 'Disable cache functionality');
}

Expand Down

0 comments on commit ad5bf97

Please sign in to comment.