Browse Source

Added help attributes to the libtest command-methods.

Added info. to the assembly info. in the console project.
master
Craig Oates 6 years ago
parent
commit
dd22423b84
  1. 10
      BrittleFish/AssemblyInfo.fs
  2. 14
      BrittleFish/ConsoleCommands.fs

10
BrittleFish/AssemblyInfo.fs

@ -7,12 +7,12 @@ open System.Runtime.InteropServices
// General Information about an assembly is controlled through the following // General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[<assembly: AssemblyTitle("BrittleFish")>] [<assembly: AssemblyTitle("Brittle Fish")>]
[<assembly: AssemblyDescription("")>] [<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: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>] [<assembly: AssemblyCompany("Craig Oates")>]
[<assembly: AssemblyProduct("BrittleFish")>] [<assembly: AssemblyProduct("Brittle Fish")>]
[<assembly: AssemblyCopyright("Copyright © 2018")>] [<assembly: AssemblyCopyright("Copyright 2018")>]
[<assembly: AssemblyTrademark("")>] [<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>] [<assembly: AssemblyCulture("")>]

14
BrittleFish/ConsoleCommands.fs

@ -26,11 +26,21 @@
let liaison = CW_Liaison() let liaison = CW_Liaison()
liaison.RequestHelpDocumentation("Commands") 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) 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)) 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) let libtest3 name = String.Format("Result: {0}", LibraryTest3 name)

Loading…
Cancel
Save