Compare commits

..

2 Commits

Author SHA1 Message Date
0bbfb9b9bf made the current directory the default input 2025-09-29 22:03:53 +02:00
a012f8f1e2 update README.md 2025-09-29 22:02:46 +02:00
2 changed files with 9 additions and 4 deletions

View File

@@ -13,10 +13,12 @@
3. file removal 3. file removal
3.1 remove all files like '*.tar' 3.1 remove all files like '*.tar'
- make input default the current directory and the second argument after `refit create` - ~~make input default the current directory and the second argument after `refit create`~~
- maybe get rid of valid input ??
## Changelog ## Changelog
<2025-09-29> V0.3.1 - Removed the requirement for an input
<2025-09-29> V0.3.0 - Added file creation in the pattern like directories <2025-09-29> V0.3.0 - Added file creation in the pattern like directories
<2025-09-29> V0.2.4 - Improved logging and log readability <2025-09-29> V0.2.4 - Improved logging and log readability
<2025-09-28> V0.2.3 - Added logging for version file and --filemode path to the decider <2025-09-28> V0.2.3 - Added logging for version file and --filemode path to the decider

View File

@@ -33,9 +33,12 @@ class Refit_Create:
logger.debug(f"Start create_input_valid() value= {self.input}") logger.debug(f"Start create_input_valid() value= {self.input}")
if self.input is None: if self.input is None:
logger.warning(f"{self.input} cannot be None") input = "."
print("Input argument missing. Use 'refit create -h' for help") self.input = input
raise ValueError("Input missing") logger.info(
f"FUNC: create_input_valid MSG: Usingsing current directory as input. value={self.input} "
)
return self.input
else: else:
logger.debug( logger.debug(
f"Exiting create_input_valid() with valid input. value= {self.input}" f"Exiting create_input_valid() with valid input. value= {self.input}"