def cli(ctx, path, **kwds): """Upload file to GitHub as a sharable gist.""" file_url = github_util.publish_as_gist_file(ctx, path) if kwds.get("link_type") == "raw": share_url = file_url else: share_url = "http://htmlpreview.github.io/?%s" % file_url info("File published to Github Gist - share with %s" % share_url)
def cli(ctx, path, **kwds): """Download a tool repository as a tarball from the tool shed and extract to the specified directory. """ file_url = github_util.publish_as_gist_file(ctx, path) if kwds.get("link_type") == "raw": share_url = file_url else: share_url = "http://htmlpreview.github.io/?%s" % file_url info("File published to Github Gist - share with %s" % share_url)
def cli(ctx, path, **kwds): """Publish JSON test results to Github Gist and produce sharable URL. Sharable URL can be used to share an HTML version of the report that can be easily embedded in pull requests or commit messages. Requires a ~/.planemo.yml with Github 'username' and 'password' defined in a 'github' section of that configuration file. """ file_url = github_util.publish_as_gist_file(ctx, path) share_url = PLANEMO_TEST_VIEWER_URL_TEMPLATE % file_url info("File published to Github Gist.") info("Raw URL: %s" % file_url) info("Share results with URL: %s" % share_url) markdown = "[View Tool Test Results](%s)" % share_url info("Embed results with markdown: %s" % markdown)
def cli(ctx, path, **kwds): """Publish JSON test results as sharable Gist. This will upload the JSON test results to Github as a Gist and produce sharable URL. The sharable URL can be used to share an HTML version of the report that can be easily embedded in pull requests or commit messages. Requires a ~/.planemo.yml with a Github access token defined in a 'github' section of that configuration file. An access token can be generated by going to https://github.com/settings/tokens. """ file_url = github_util.publish_as_gist_file(ctx, path) share_url = PLANEMO_TEST_VIEWER_URL_TEMPLATE % file_url info("File published to Github Gist.") info("Raw URL: %s" % file_url) info("Share results with URL: %s" % share_url) markdown = "[View Tool Test Results](%s)" % share_url info("Embed results with markdown: %s" % markdown)