Skip to content

Commit 395f0aa

Browse files
committed
Current dir change added to the docu
1 parent df4890b commit 395f0aa

File tree

2 files changed

+29
-16
lines changed

2 files changed

+29
-16
lines changed

docs/Cider-User-Guide.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,12 @@ This allows a developer to access `TatinVars` as if it was loaded as a package w
527527
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.
528528
529529
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)
531536
532537
Now there might well be demand for executing some code to initialise your project.
533538
@@ -541,7 +546,7 @@ Such a function may be niladic, monadic, ambivalent or dyadic:
541546
* An ambivalent or dyadic function receives a path as left argument: this is the home folder of the project
542547
543548
544-
#### 11. Executing user-specific code
549+
#### 12. Executing user-specific code
545550
546551
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.
547552
@@ -568,14 +573,14 @@ Another application could be to bring in non-Tatin dependencies defined in the `
568573
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.
569574
570575
571-
#### 12. Check for `ToDo`
576+
#### 13. Check for `ToDo`
572577
573578
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.
574579
575580
You may use this to keep track of steps that need to be executed before the project can be commited or published etc.
576581
577582
578-
#### 13. Git
583+
#### 14. Git
579584
580585
If the project is managed by Git then Cider will report the current branch and its status.
581586
@@ -670,3 +675,4 @@ An example:
670675
671676
672677
678+

html/Cider-User-Guide.html

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ <h3>Table of contents</h3>
8484
<li class="toc-entry toc-h4"><a href="#7-loading-nuget-packages">2.6.7. 7. Loading NuGet packages</a></li>
8585
<li class="toc-entry toc-h4"><a href="#8-injecting-a-namespace-ciderconfig">2.6.8. 8. Injecting a namespace <code>CiderConfig</code></a></li>
8686
<li class="toc-entry toc-h4"><a href="#9-injecting-a-namespace-tatinvars">2.6.9. 9. Injecting a namespace <code>TatinVars</code></a></li>
87-
<li class="toc-entry toc-h4"><a href="#10-initialising-a-project">2.6.10. 10. Initialising a project (optional)</a></li>
88-
<li class="toc-entry toc-h4"><a href="#11-executing-user-specific-code">2.6.11. 11. Executing user-specific code</a></li>
89-
<li class="toc-entry toc-h4"><a href="#12-check-for-todo">2.6.12. 12. Check for <code>ToDo</code></a></li>
90-
<li class="toc-entry toc-h4"><a href="#13-git">2.6.13. 13. Git</a></li>
87+
<li class="toc-entry toc-h4"><a href="#9-changing-the-current-directory">2.6.10. 9. Changing the current directory</a></li>
88+
<li class="toc-entry toc-h4"><a href="#11-initialising-a-project">2.6.11. 11. Initialising a project (optional)</a></li>
89+
<li class="toc-entry toc-h4"><a href="#12-executing-user-specific-code">2.6.12. 12. Executing user-specific code</a></li>
90+
<li class="toc-entry toc-h4"><a href="#13-check-for-todo">2.6.13. 13. Check for <code>ToDo</code></a></li>
91+
<li class="toc-entry toc-h4"><a href="#14-git">2.6.14. 14. Git</a></li>
9192
</ul></li>
9293
</ul></li>
9394
<li class="toc-entry toc-h2"><a href="#misc">3. Misc</a>
@@ -582,8 +583,14 @@ <h4 data-id="9-Injecting-a-namespace-TatinVars">2.6.9. 9. Injecting a namespace
582583
<p>This allows a developer to access <code>TatinVars</code> as if it was loaded as a package while working on the project.</p>
583584
<p>Whether the project ends up as a package is determined by the presencse of a file <code>apl-package.json</code> in the root of the project.</p>
584585
<div class="h_tag">
585-
<a href="#10-initialising-a-project" id="10-initialising-a-project" class="autoheader_anchor">
586-
<h4 data-id="10-Initialising-a-project">2.6.10. 10. Initialising a project (optional)</h4>
586+
<a href="#9-changing-the-current-directory" id="9-changing-the-current-directory" class="autoheader_anchor">
587+
<h4 data-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>
591+
<div class="h_tag">
592+
<a href="#11-initialising-a-project" id="11-initialising-a-project" class="autoheader_anchor">
593+
<h4 data-id="11-Initialising-a-project">2.6.11. 11. Initialising a project (optional)</h4>
587594
</a>
588595
</div>
589596
<p>Now there might well be demand for executing some code to initialise your project.</p>
@@ -595,8 +602,8 @@ <h4 data-id="10-Initialising-a-project">2.6.10. 10. Initialising a project (opti
595602
<li>An ambivalent or dyadic function receives a path as left argument: this is the home folder of the project</li>
596603
</ul>
597604
<div class="h_tag">
598-
<a href="#11-executing-user-specific-code" id="11-executing-user-specific-code" class="autoheader_anchor">
599-
<h4 data-id="11-Executing-user-specific-code">2.6.11. 11. Executing user-specific code</h4>
605+
<a href="#12-executing-user-specific-code" id="12-executing-user-specific-code" class="autoheader_anchor">
606+
<h4 data-id="12-Executing-user-specific-code">2.6.12. 12. Executing user-specific code</h4>
600607
</a>
601608
</div>
602609
<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>
@@ -612,15 +619,15 @@ <h4 data-id="11-Executing-user-specific-code">2.6.11. 11. Executing user-specifi
612619
<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>
613620
<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>
614621
<div class="h_tag">
615-
<a href="#12-check-for-todo" id="12-check-for-todo" class="autoheader_anchor">
616-
<h4 data-id="12-Check-for-ToDo">2.6.12. 12. Check for <code>ToDo</code></h4>
622+
<a href="#13-check-for-todo" id="13-check-for-todo" class="autoheader_anchor">
623+
<h4 data-id="13-Check-for-ToDo">2.6.13. 13. Check for <code>ToDo</code></h4>
617624
</a>
618625
</div>
619626
<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>
620627
<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>
621628
<div class="h_tag">
622-
<a href="#13-git" id="13-git" class="autoheader_anchor">
623-
<h4 data-id="13-Git">2.6.13. 13. Git</h4>
629+
<a href="#14-git" id="14-git" class="autoheader_anchor">
630+
<h4 data-id="14-Git">2.6.14. 14. Git</h4>
624631
</a>
625632
</div>
626633
<p>If the project is managed by Git then Cider will report the current branch and its status.</p>

0 commit comments

Comments
 (0)