forked from ecukes/ecukes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ecukes-project.el
32 lines (24 loc) · 876 Bytes
/
ecukes-project.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
;;; ecukes-project.el --- Project helpers
(require 'f)
(defun ecukes-project-path (&optional dir)
"Path to project."
(or dir (setq dir default-directory))
(if (f-dir? (f-expand "features" dir))
dir
(let ((parent (f-parent dir)))
(unless (f-root? parent)
(ecukes-project-path parent)))))
(defun ecukes-project-name ()
"Name of the project."
(f-filename (ecukes-project-path)))
(defun ecukes-project-features-path ()
"Path to project features dir."
(f-expand "features" (ecukes-project-path)))
(defun ecukes-project-support-path ()
"Path to project features dir."
(f-expand "support" (ecukes-project-features-path)))
(defun ecukes-project-step-definitions-path ()
"Path to project step definitions dir."
(f-expand "step-definitions" (ecukes-project-features-path)))
(provide 'ecukes-project)
;;; ecukes-project.el ends here