parse_cd_path

Function parse_cd_path 

Source
pub fn parse_cd_path(command: &str, cwd: &Path) -> Option<String>
Expand description

Parse cd command for directory changes.

Handles quoted and unquoted paths:

  • cd /path/to/dir
  • cd "/path with spaces/dir"
  • cd '/path/dir'