Releases: nb-twy/ParkDirectories
Version 2.0.1
Version 2.0.0
Autocomplete
The most significant update in this release is the addition of autocomplete capabilities. With a <tab>
or two, the user is able to autocomplete short and long option names, the parked reference names, paths relative to the target directory, and standard files.
Support for Old Log File Location Removed
The location of the installation log file was changed months ago. After a long wait, there is no longer support for the old file location.
Bug Fix
Replace the exit
statement with return
in the active script (pd.sh
) so that the terminal session does not exit when a script failure occurs.
Version 1.6.0
Enhancements
This release adds a simple enhancement. When the list of parked directories is empty, instead of showing three empty lines, it displays No directories have been parked yet.
Version 1.4.0
Admin
I added the BSD 3-Clause license so that the community will know how it can use Park Directories and its source code.
Enhancements
- Add the ability to export the current list of parked directories to a file specified by the user (Issue #28)
pd -e my-pd-backup.txt
- Add the ability to import a list of parked directories from a user-specified file. (Issue #8)
- You can append the imported list to the current list:
pd -i --append my-parked-directories.txt
- You can overwrite the current list with the imported list with an interactive session
pd -i my-parked-directories.txt
- You can overwrite the current list with the imported list without any interaction
pd -i --quiet my-parked-directories.txt
- You can append the imported list to the current list:
Version 1.5.1
Fixes
Update README file with information and an example detailing the ability to initialize the data file with a user specified file.
Version 1.5.0
Enhancements
When Park Directories is installed, the data file (located, by default, at $HOME/.pd-data
) is initialized. By default, it is initialized without any content. With this release, the user has an option to import a file during installation. The command looks like this:
./install.sh -i my-parked-directories.txt
The file specified is copied to the $HOME/.pd-data
and is not checked for proper formatting. I intend to add format checking in a later release. For now, this can be useful when the export feature is used, providing the user with a properly formatted set of parked directories. They can then use the exported file to set up a new environment in another VM or on another host, for example.
Version 1.3.0
Enhancements
- Add Code of Conduct
- Move installation log file from the local repository directory to
$HOME/.pd.log
(Issue #26) - Report PD version (Issue #1)
- Catch unknown CLI options and reject ref names that start with
-
(Issue #36)
Bug Fixes
- Exit with system error when running
pd -l
immediately after installation (Issue #32)
Version 1.2.0
Enhancements
- Provide user feedback when an addition is successful (Issue #4)
$ pd -a dev Added: dev --> /home/user/dev
- Provide user feedback when a removal is successful (Issue #14)
$ pd -d dev Removed: dev --> /home/user/dev
- Replace
exit
withreturn
inpd.sh
so that exit codes work properly (Issue #16) - Verify installation of Park Directories (Issue #6)
Valid InstallationPartial InstallationChecking for installed components of Park Directories... ✔ Installation log file located @ /home/user/dev/ParkDirectories/pd.log ✔ Installation log file parsed. ✔ Executable @ /home/user/pd.sh ✔ Function active: pd ✔ Data file @ /home/user/.pd-data ✔ Bootstrap code located in /home/user/.bashrc All components are installed as expected.
Checking for installed components of Park Directories... ✔ Installation log file located @ /home/user/dev/ParkDirectories/pd.log ✔ Installation log file parsed. ❌ Executable could not be located. Expected @ /home/user/pd.sh ✔ Function active: pd ❌ Data file could not be located. Expected @ /home/user/.pd-data ✔ Bootstrap code located in /home/user/.bashrc Park Directories is only partially installed. Please review the list above and refer to the README for possible solutions.
- In-place upgrade allows replacement of
pd.sh
with new version without affecting parked directories list or other installed components (Issue #6)$ ./install.sh -u Updating Park Directories... Checking for installed components... Park Directories seems to be installed properly. Continuing with update... Update complete. $ source ~/.bashrc
- Add a directory with the full path to the directory (Issue #3)
$ pd -a log /var/log Added: log --> /var/log
- Allow multiple actions in a single execution (Issue #24)
$ pd -d proj -d dbg -d rel -a proj -a dbg /home/user/dev/myproject/bin/debug -a rel /home/user/dev/myproject/bin/release -l proj -- No parked directory with that name dbg -- No parked directory with that name rel -- No parked directory with that name Added: proj --> /home/user/dev/myproject Added: dbg --> /home/user/dev/myproject/bin/debug Added: rel --> /home/user/dev/myproject/bin/release proj /home/user/dev/myproject dbg /home/user/dev/myproject/bin/debug rel /home/user/dev/myproject/bin/release
- Ensure that reference names do not contain a forward slash '/' (Issue #29)
$ pd -a proj/dbg ERROR: Reference name may not contain '/'
Bug Fixes
- Require at least one argument after
-a
option (Issue #15)