{"action":"created","issue":{"url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/117","repository_url":"https://api.github.com/repos/nightroman/Invoke-Build","labels_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/117/comments","events_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/117/events","html_url":"https://github.com/nightroman/Invoke-Build/issues/117","id":293083391,"number":117,"title":"Add parameters of job to new column with ib ?","user":{"login":"majkinetor","id":85767,"avatar_url":"https://avatars1.githubusercontent.com/u/85767?v=4","gravatar_id":"","url":"https://api.github.com/users/majkinetor","html_url":"https://github.com/majkinetor","followers_url":"https://api.github.com/users/majkinetor/followers","following_url":"https://api.github.com/users/majkinetor/following{/other_user}","gists_url":"https://api.github.com/users/majkinetor/gists{/gist_id}","starred_url":"https://api.github.com/users/majkinetor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majkinetor/subscriptions","organizations_url":"https://api.github.com/users/majkinetor/orgs","repos_url":"https://api.github.com/users/majkinetor/repos","events_url":"https://api.github.com/users/majkinetor/events{/privacy}","received_events_url":"https://api.github.com/users/majkinetor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-01-31T09:16:54Z","updated_at":"2018-02-07T19:42:26Z","closed_at":"2018-02-07T19:42:26Z","author_association":"NONE","body":"I usually have 15 or so jobs, and some of them use parameters that are specific for those jobs.\r\n\r\nIt would be nice if `ib ?` could show task parameters in separate column. I currently list them in each task Synopsis which is not very evident in the help and not ideal to maintain.\r\n\r\nThis is the desired output:\r\n\r\n```powershell\r\nName         Jobs                                 Params                                   Synopsis\r\n----         ----                                 -------                                  --------\r\n.            {}\r\n..           {}                                   [string] pJobs                           Execute jobs on parent build script \r\nAddChangelog {}                                   [string] pMilestone                      Add changelog data into md files\r\nDeps         {}                                                                            Install system dependencies\r\nConfigure    {}                                   pEnvironment                             Configure docs \r\nRun          {Deps, Stop, Configure, Build...}    pEnvironment                             Run local development\r\nMakeImages   {}                                   pEnvironment                             Convert *.puml.md files to SVG images\r\nBuild        {Deps, Configure, MakeImages, {}}    [string] pUserDocs, [string] pFormats    Build documentation \r\nStop         {}                                   [switch] pForce                          Stop any running tools and services\r\nClean        {}                                                                            Clean generated files\r\n\r\n```\r\n\r\nConnection of jobs with params could be done in synopsis for example within `[...]` or it can even be automatic (via token parsing and comparing what script vars are used in task)\r\n\r\n```powershell\r\n# Synopsis: Add changelog data into md files [pMilestone, pUserDocs]\r\ntask AddChangelog {\r\n    cd $ServiceRoot\\infrastructure\\gitlab\\changelog\r\n    ruby .\\changelog.rb $pMilestone $pUserDocs\r\n}\r\n```\r\n\r\nWe could also have upgrade to `?` related to this:\r\n\r\n\r\n```\r\nPS> ib AddChangelog ?\r\n\r\nAddChangelog\r\nAdd changelog data into md files \r\n\r\nParameters:\r\n    [string] pMilestone       Milestone to generate changelog\r\n    [string] pUserDocs        Do not build full documentation but only for end user\r\n```\r\n\r\nParameter descriptions are taken from the normal posh documentation.\r\n"},"comment":{"url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/comments/363886904","html_url":"https://github.com/nightroman/Invoke-Build/issues/117#issuecomment-363886904","issue_url":"https://api.github.com/repos/nightroman/Invoke-Build/issues/117","id":363886904,"user":{"login":"nightroman","id":927533,"avatar_url":"https://avatars3.githubusercontent.com/u/927533?v=4","gravatar_id":"","url":"https://api.github.com/users/nightroman","html_url":"https://github.com/nightroman","followers_url":"https://api.github.com/users/nightroman/followers","following_url":"https://api.github.com/users/nightroman/following{/other_user}","gists_url":"https://api.github.com/users/nightroman/gists{/gist_id}","starred_url":"https://api.github.com/users/nightroman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nightroman/subscriptions","organizations_url":"https://api.github.com/users/nightroman/orgs","repos_url":"https://api.github.com/users/nightroman/repos","events_url":"https://api.github.com/users/nightroman/events{/privacy}","received_events_url":"https://api.github.com/users/nightroman/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T19:42:26Z","updated_at":"2018-02-07T19:42:26Z","author_association":"OWNER","body":"v5.1.0 implements `ib ... -wh` ~ (`Invoke-Build ... -WhatIf`). I am closing the issue because the job is mostly done. I am sure a few *minor* improvements will come soon. For something *major* let's start a new issue after a while, let's collect some experience at first."}}
{"actor":{"display_login":"nightroman"}}