Skip to content

Commit

Permalink
Merge branch 'master' into comment-publish-report
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Jun 14, 2022
2 parents 484143d + bf90536 commit ca2621a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 31 deletions.
3 changes: 2 additions & 1 deletion bin/cml/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ exports.builder = (yargs) =>
type: 'string',
alias: 'f',
description:
'Append the output to the given file. Create it if does not exist.'
'Append the output to the given file. Create it if does not exist.',
hidden: true
},
repo: {
type: 'string',
Expand Down
2 changes: 0 additions & 2 deletions bin/cml/publish.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ describe('CML e2e', () => {
--rm-watermark Avoid CML watermark. [boolean]
--mime-type Specifies the mime-type. If not set guess it from the
content. [string]
-f, --file Append the output to the given file. Create it if does not
exist. [string]
--repo Specifies the repo to be used. If not specified is
extracted from the CI ENV. [string]
--token Personal access token to be used. If not specified,
Expand Down
3 changes: 2 additions & 1 deletion bin/cml/tensorboard-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ exports.builder = (yargs) =>
type: 'string',
alias: 'f',
description:
'Append the output to the given file. Create it if does not exist.'
'Append the output to the given file. Create it if does not exist.',
hidden: true
},
rmWatermark: {
type: 'boolean',
Expand Down
46 changes: 22 additions & 24 deletions bin/cml/tensorboard-dev.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,30 +55,28 @@ describe('CML e2e', () => {
const output = await exec(`node ./bin/cml.js tensorboard-dev --help`);

expect(output).toMatchInlineSnapshot(`
"cml.js tensorboard-dev
Get a tensorboard link
Options:
--help Show help [boolean]
--version Show version number [boolean]
--log Maximum log level
[string] [choices: \\"error\\", \\"warn\\", \\"info\\", \\"debug\\"] [default: \\"info\\"]
-c, --credentials TB credentials as json. Usually found at
~/.config/tensorboard/credentials/uploader-creds.json. If
not specified will look for the json at the env variable
TB_CREDENTIALS. [string] [required]
--logdir Directory containing the logs to process. [string]
--name Tensorboard experiment title. Max 100 characters. [string]
--description Tensorboard experiment description. Markdown format. Max
600 characters. [string]
--md Output as markdown [title || name](url). [boolean]
-t, --title Markdown title, if not specified, param name will be used.
[string]
-f, --file Append the output to the given file. Create it if does not
exist. [string]
--rm-watermark Avoid CML watermark. [boolean]"
`);
"cml.js tensorboard-dev
Get a tensorboard link
Options:
--help Show help [boolean]
--version Show version number [boolean]
--log Maximum log level
[string] [choices: \\"error\\", \\"warn\\", \\"info\\", \\"debug\\"] [default: \\"info\\"]
-c, --credentials TB credentials as json. Usually found at
~/.config/tensorboard/credentials/uploader-creds.json. If
not specified will look for the json at the env variable
TB_CREDENTIALS. [string] [required]
--logdir Directory containing the logs to process. [string]
--name Tensorboard experiment title. Max 100 characters. [string]
--description Tensorboard experiment description. Markdown format. Max
600 characters. [string]
--md Output as markdown [title || name](url). [boolean]
-t, --title Markdown title, if not specified, param name will be used.
[string]
--rm-watermark Avoid CML watermark. [boolean]"
`);
});

test('cml tensorboard-dev --md returns md and after command TB is still up', async () => {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dvcorg/cml",
"version": "0.16.0",
"version": "0.16.1",
"description": "<p align=\"center\"> <img src=\"https://static.iterative.ai/img/cml/title_strip_trim.png\" width=400> </p>",
"author": {
"name": "Iterative Inc",
Expand Down

1 comment on commit ca2621a

@github-actions

This comment was marked as off-topic.

Please sign in to comment.