From adb060f86fa8eefa403b6038d13939ee606690a3 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 6 Mar 2021 06:02:53 -0600 Subject: [PATCH] Add behavior spec to create project_dir --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c5b9ebb..758cbf9 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,14 @@ If the project exists in your project directory, it will spawn a subshell in tha When invoked as specified in usage (with any number of valid flags plus exactly one non-flag argument referred to here as `$arg1`), `proj` will do the following: +* Check for the existence of `project_dir` + + * If `project_dir` is a directory or symbolic link, proceed + + * If `project_dir` is any other type of file, panic + + * If `project_dir` does not exist, create it + * `cd` to `project_dir` (normally `~/Projects`) * Check for the existence of `$arg1`