Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add xmldoc description to --list-targets #922

Closed
ctaggart opened this issue Aug 23, 2015 · 3 comments
Closed

add xmldoc description to --list-targets #922

ctaggart opened this issue Aug 23, 2015 · 3 comments

Comments

@ctaggart
Copy link
Contributor

Only today did I discover the --list-targets option. Besides being able to make it a default option, it would be great if it included the description from the xmldoc.

image

It would be even better if listTargets() included the documentation for the target.
image

Perhaps it should be the xmldoc of the target function.

/// start a web server and watch for slide edits
let keepRunning() =
    use watcher = !! (slidesDir + "/**/*.*") |> WatchChanges (fun changes ->
         handleWatcherEvents changes
    )
    startWebServer ()
    traceImportant "Waiting for slide edits. Press any key to stop."
    System.Console.ReadKey() |> ignore
    watcher.Dispose()

Target "KeepRunning" keepRunning

Target "ReleaseSlides" (
    /// push the slides to GitHub gh-pages branch
    fun _ ->
    if gitOwner = "myGitUser" || gitProjectName = "MyProject" then
        failwith "You need to specify the gitOwner and gitProjectName in build.fsx"
    let tempDocsDir = __SOURCE_DIRECTORY__ @@ "temp/gh-pages"
    CleanDir tempDocsDir
    Repository.cloneSingleBranch "" (gitHome + "/" + gitProjectName + ".git") "gh-pages" tempDocsDir

    fullclean tempDocsDir
    CopyRecursive outDir tempDocsDir true |> tracefn "%A"
    StageAll tempDocsDir
    Git.Commit.Commit tempDocsDir "Update generated slides"
    Branches.push tempDocsDir
)
@halcwb
Copy link

halcwb commented Nov 17, 2015

Agree, the ability to provide some description for your targets would be very useful.

@matthid
Copy link
Member

matthid commented May 6, 2017

This might or might not be quite hard to do

@matthid
Copy link
Member

matthid commented Feb 4, 2018

You can actually set a description on a target via DSL (Description "Some text")

@matthid matthid closed this as completed Feb 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants