You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Cider-User-Guide.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -527,7 +527,12 @@ This allows a developer to access `TatinVars` as if it was loaded as a package w
527
527
Whether the project ends up as a package is determined by the presencse of a file `apl-package.json` in the root of the project.
528
528
529
529
530
-
#### 10. Initialising a project (optional)
530
+
#### 9. Changing the current directory
531
+
532
+
At this point Cider checks the current (or working) directory. If it's different from the project's directory the user is asked whether she wants to change the current directory to the project's directory.
533
+
534
+
535
+
#### 11. Initialising a project (optional)
531
536
532
537
Now there might well be demand for executing some code to initialise your project.
533
538
@@ -541,7 +546,7 @@ Such a function may be niladic, monadic, ambivalent or dyadic:
541
546
* An ambivalent or dyadic function receives a path as left argument: this is the home folder of the project
542
547
543
548
544
-
#### 11. Executing user-specific code
549
+
#### 12. Executing user-specific code
545
550
546
551
You might want to execute some general code (as opposed to project-specific code) after a project was loaded. "General" means that this code is executed whenever a project (any project!) is opened.
547
552
@@ -568,14 +573,14 @@ Another application could be to bring in non-Tatin dependencies defined in the `
568
573
Note that you may use the `ignoreUserExec` flag to tell `OpenProject` to ignore the global setting. This is certainly useful when Cider's test suite is executed.
569
574
570
575
571
-
#### 12. Check for `ToDo`
576
+
#### 13. Check for `ToDo`
572
577
573
578
Finally Cider checks whether there is a variables `ToDo` in the root of your project that is not empty. If that's the case then the contents of that variable is printed to the session.
574
579
575
580
You may use this to keep track of steps that need to be executed before the project can be commited or published etc.
576
581
577
582
578
-
#### 13. Git
583
+
#### 14. Git
579
584
580
585
If the project is managed by Git then Cider will report the current branch and its status.
<h4data-id="9-Changing-the-current-directory">2.6.10. 9. Changing the current directory</h4>
588
+
</a>
589
+
</div>
590
+
<p>At this point Cider checks the current (or working) directory. If it's different from the project's directory the user is asked whether she wants to change the current directory to the project's directory.</p>
<p>You might want to execute some general code (as opposed to project-specific code) after a project was loaded. “General” means that this code is executed whenever a project (any project!) is opened.</p>
<p>Another application could be to bring in non-Tatin dependencies defined in the <code>dependencies</code> and/or the <code>dependencies_dev</code> properties.</p>
613
620
<p>Note that you may use the <code>ignoreUserExec</code> flag to tell <code>OpenProject</code> to ignore the global setting. This is certainly useful when Cider's test suite is executed.</p>
<h4data-id="13-Check-for-ToDo">2.6.13. 13. Check for <code>ToDo</code></h4>
617
624
</a>
618
625
</div>
619
626
<p>Finally Cider checks whether there is a variables <code>ToDo</code> in the root of your project that is not empty. If that's the case then the contents of that variable is printed to the session.</p>
620
627
<p>You may use this to keep track of steps that need to be executed before the project can be commited or published etc.</p>
0 commit comments