Browse Source

Added help attributes to the libtest command-methods.

Added info. to the assembly info. in the console project.
master
Craig Oates 4 years ago
parent
commit
dd22423b84
2 changed files with 17 additions and 7 deletions
  1. +5
    -5
      BrittleFish/AssemblyInfo.fs
  2. +12
    -2
      BrittleFish/ConsoleCommands.fs

+ 5
- 5
BrittleFish/AssemblyInfo.fs View File

@ -7,12 +7,12 @@ open System.Runtime.InteropServices
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[<assembly: AssemblyTitle("BrittleFish")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyTitle("Brittle Fish")>]
[<assembly: AssemblyDescription("A demo. console program for using Console.Waterworks in a F# console project. Type help for a list of commands")>]
[<assembly: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>]
[<assembly: AssemblyProduct("BrittleFish")>]
[<assembly: AssemblyCopyright("Copyright © 2018")>]
[<assembly: AssemblyCompany("Craig Oates")>]
[<assembly: AssemblyProduct("Brittle Fish")>]
[<assembly: AssemblyCopyright("Copyright 2018")>]
[<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>]


+ 12
- 2
BrittleFish/ConsoleCommands.fs View File

@ -26,11 +26,21 @@
let liaison = CW_Liaison()
liaison.RequestHelpDocumentation("Commands")
[<ListCommand>]
[<Description "Adds the two numbers together.">]
[<Parameters "x:int y:int">]
[<Usage "> libtest1 5 10">]
let libtest1 x y = String.Format("Result: {0}" , LibraryTest1 x y)
[<ListCommand>]
[<Description "Multiplies x and y together then mulitplies that by z or... (x * y) * z">]
[<Parameters "x:int y:int z:int">]
[<Usage "> libtest2 5 10 2">]
let libtest2 x y z = String.Format("Result: {0}", (LibraryTest2 x y z))
[<ListCommand>]
[<Description "Appends the named passed into the console onto \"Hello\" and displays it in the console.">]
[<Parameters "name: string">]
[<Usage "> libtest3 \"Craig Oates\"">]
let libtest3 name = String.Format("Result: {0}", LibraryTest3 name)

Loading…
Cancel
Save