update links to git.abbether.

master
Craig Oates 4 years ago
parent
commit
a8e6bcc819
  1. 4
      Gotchas-and-Where-C#-and-F#-Differ.md
  2. 6
      Home.md
  3. 4
      Overview-of-Console.Waterworks.md
  4. 6
      Using-the-Help-Attributes.md
  5. 8
      Wiring-Console.Waterworks-into-Your-Project.md
  6. 6
      Writing-Command-Methods-in-F#.md
  7. 1
      _Sidebar.md

4
Gotchas-and-Where-C#-and-F#-Differ.md

@ -10,8 +10,8 @@ If you write a command-method which takes no arguments, you must make sure you s
For further information, please refer to the `ConsoleCommands` module in either the ".Net" or ."Net Core" console projects. You might need them to help explain this next point. The links for these modules are as follows:
- [BrittleFish ConsoleCommands.fs (.Net)](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFish/ConsoleCommands.fs)
- [BrittleFishCore ConsoleCommands.fs (Core)](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/ConsoleCommands.fs)
- [BrittleFish ConsoleCommands.fs (.Net)](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFish/ConsoleCommands.fs)
- [BrittleFishCore ConsoleCommands.fs (Core)](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/ConsoleCommands.fs)
To begin, here are two command-methods:

6
Home.md

@ -1,11 +1,11 @@
* Created by: Craig Oates
* Web: [craigoates.net](http://www.craigoates.net)
* Email: [craig@craigoates.net](mailto:craig@craigoates.net)
* License: [MIT](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/LICENSE)
* License: [MIT](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/LICENSE)
Welcome to the wiki of Brittle-Fish. If you are looking to learn about **using** Console.Waterworks in a F#-only environment, you have come to the right place. The aim of this wiki is to teach you about using Console.Waterworks in an F# context. I recommend you read the actual Console.Waterworks wiki if you want to know how it works. You can head over to the wiki by clicking the following link,
* [Console.Waterworks Wiki](https://gitlab.com/craig.oates/Console.Waterworks/wikis/home)
* [Console.Waterworks Wiki](https://git.abbether.net/craig.oates/Console.Waterworks/wikis/home)
Before continuing, I recommend you are familiar with the following:
@ -34,4 +34,4 @@ Before continuing, I recommend you are familiar with the following:
9. [Using the Help Attributes](Using-the-Help-Attributes)
10. [Referencing Other Projects](Referencing-Other-Projects)
11. [Gotchas and Where C# and F# Differ](Gotchas-and-Where-C%23-and-F%23-Differ)
12. [Code Snippets for Common Tasks](https://gitlab.com/craig.oates/Brittle-Fish/snippets)
12

4
Overview-of-Console.Waterworks.md

@ -18,10 +18,10 @@ must refer to the wikis of the actual (C.W.) projects. Their links are as
follows:
* [Console.Waterworks
Wiki](https://gitlab.com/craig.oates/Console.Waterworks/wikis/home)
Wiki](https://git.abbether.net/craig.oates/Console.Waterworks/wikis/home)
-- for using with C# and altering the source code.
* [Console.Waterworks.Core
Wiki](https://gitlab.com/craig.oates/Console.Waterworks.Core/wikis/home)
Wiki](https://git.abbether.net/craig.oates/Console.Waterworks.Core/wikis/home)
-- for using C.W.C. with C#.
If you want to add new features or fix bugs, I recommend you start

6
Using-the-Help-Attributes.md

@ -11,7 +11,7 @@ There are four attributes in total. They are:
For more information on the "help" attributes, please refer to the following link:
- [Help Attributes Wiki Page (Console.Waterworks Wiki)](https://gitlab.com/craig.oates/Console.Waterworks/wikis/The-%22Help%22-Attributes)
- [Help Attributes Wiki Page (Console.Waterworks Wiki)](https://git.abbether.net/craig.oates/Console.Waterworks/wikis/The-%22Help%22-Attributes)
To set-up the "help" section , you must create a command-method first. You can use any name you want. For example, I usually call it `help`.
@ -44,5 +44,5 @@ A nice side-effect of the attributes is your command-methods are "self-documente
For the sake of completeness, here is a link to the `ConsoleCommands` modules for the .Net and .Net Core projects:
- [BrittleFish ConsoleCommands.fs (.Net)](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFish/ConsoleCommands.fs)
- [BrittleFishCore ConsoleCommands.fs (Core)](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/ConsoleCommands.fs)
- [BrittleFish ConsoleCommands.fs (.Net)](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFish/ConsoleCommands.fs)
- [BrittleFishCore ConsoleCommands.fs (Core)](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/ConsoleCommands.fs)

8
Wiring-Console.Waterworks-into-Your-Project.md

@ -55,7 +55,7 @@ One way to change the assembly information in your .Net program is to alter it v
- [Setting Assembly Attributes](https://docs.microsoft.com/en-us/dotnet/framework/app-domains/set-assembly-attributes): This applies to the traditional and Core versions of .Net. It provides information on what resides in Assembly Information manifests and files.
- [How to Target a version of .Net](https://docs.microsoft.com/en-us/visualstudio/ide/how-to-target-a-version-of-the-dotnet-framework?view=vs-2019): This provides extra context on the Properties page in Visual Studio and how it fits the Assembly Information dialog box into it -- from a traditional .Net angle.
- [The AssemblyInfo.fs file for BrittleFish](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFish/AssemblyInfo.fs): The actual Assembly Information file for the BrittleFish console program. Use this as a reference for your own projects.
- [The AssemblyInfo.fs file for BrittleFish](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFish/AssemblyInfo.fs): The actual Assembly Information file for the BrittleFish console program. Use this as a reference for your own projects.
You might find you do not have a file called "AssemblyInfo.fs" within your project. If you are unfamiliar with these types of files, feel free to peruse the links above for help on learning how to add it. As an alternative, you can create a file in your project (in Visual Studio) and call it "AssemblyInfo.fs" -- make sure it is at the **root** level. From there, you can copy and paste the following code block into it (making sure you replace the code wrapped in `{delete the braces when you add your own info.}`):
@ -106,19 +106,19 @@ do
To help you get a sense of where this file should live, please review the file structure for BrittleFish. You can do that by using the following link:
- [BrittleFish (Console Project) File Structure](https://gitlab.com/craig.oates/Brittle-Fish/tree/master/BrittleFish)
- [BrittleFish (Console Project) File Structure](https://git.abbether.net/craig.oates/Brittle-Fish/tree/master/BrittleFish)
### .Net Core
Like the traditional .Net version, you can use the Properties dialog box in Visual Studio. Use the links below for extra information, which are:
- [Application Page, Project Designer (C#)](https://docs.microsoft.com/en-us/visualstudio/ide/reference/application-page-project-designer-csharp?view=vs-2019): This show you how to access the Properties page box and provides more information on how the Assembly Information dialog box fits into it -- from a .Net Core perspective.
- [The AssemblyInfo.fs file for BrittleFishCore](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/AssemblyInfo.fs): The actual Assembly Information file for the BrittleFishCore console program. Use this as a reference for your own projects.
- [The AssemblyInfo.fs file for BrittleFishCore](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/AssemblyInfo.fs): The actual Assembly Information file for the BrittleFishCore console program. Use this as a reference for your own projects.
I tend to find, Visual Studio automatically makes a "AssemblyInfo.fs" file when I create a .Net Core project. So, I do not need to go out of my way to make one. If, for some reason, you find yourself without one, you can use the same technique in the ".Net" section above. The same applies to the code block within it.
Like the section above, you can get a sense of where "AssemblyInfo.fs" should live (in a .Net Core project) by reviewing the file structure for BrittleFishCore. You can do that by using the following link:
- [BrittleFishCore (Console Project) File Structure](https://gitlab.com/craig.oates/Brittle-Fish/tree/master/BrittleFishCore)
- [BrittleFishCore (Console Project) File Structure](https://git.abbether.net/craig.oates/Brittle-Fish/tree/master/BrittleFishCore)

6
Writing-Command-Methods-in-F#.md

@ -19,8 +19,8 @@ let test () =
More examples can be found at the following links:
- [BrittleFish Console Project (.Net)](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFish/ConsoleCommands.fs)
- [BrittleFish.Core Console Project (.Net Core)](https://gitlab.com/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/ConsoleCommands.fs)
- [BrittleFish Console Project (.Net)](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFish/ConsoleCommands.fs)
- [BrittleFish.Core Console Project (.Net Core)](https://git.abbether.net/craig.oates/Brittle-Fish/blob/master/BrittleFishCore/ConsoleCommands.fs)
What is important to note here is the command-methods name. This is what the end-user must enter at run-time to execute said command-method. The input is, also, case-sensitive. So, if you wanted to, you could use `test` and `Test` as seperate command-methods.
@ -32,6 +32,6 @@ Another feature of C.W. is it parses and coerces input arguments. This means you
![run-time error handling](attachments/run-time-error-handling.png)
To be clear, there are limits to the amount of types you can use with you command-methods. For a full list of all the coercion types, please refer to the [**Coercion Types List**](https://gitlab.com/craig.oates/Console.Waterworks/wikis/Coercion-Types-List) in the main C.W. wiki.
To be clear, there are limits to the amount of types you can use with you command-methods. For a full list of all the coercion types, please refer to the [**Coercion Types List**](https://git.abbether.net/craig.oates/Console.Waterworks/wikis/Coercion-Types-List) in the main C.W. wiki.
If you write a command-method with arguments not on the coercion list, you will get a **run-time** error. With that said, you are free to use whatever types you want **inside** the command-method.

1
_sidebar.md → _Sidebar.md

@ -13,4 +13,3 @@
9. [Using the Help Attributes](Using-the-Help-Attributes)
10. [Referencing Other Projects](Referencing-Other-Projects)
11. [Gotchas and Where C# and F# Differ](Gotchas-and-Where-C%23-and-F%23-Differ)
12. [Code Snippets for Common Tasks](https://gitlab.com/craig.oates/Brittle-Fish/snippets)
Loading…
Cancel
Save