Socket
Socket
Sign inDemoInstall

@dvcorg/cml

Package Overview
Dependencies
280
Maintainers
5
Versions
156
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.18.16 to 0.18.17

41

bin/cml.js

@@ -16,19 +16,8 @@ #!/usr/bin/env node

const legacyEnvironmentPrefixes = {
CML_CI: 'CML',
CML_PUBLISH: 'CML',
CML_RERUN_WORKFLOW: 'CML',
CML_SEND_COMMENT: 'CML',
CML_SEND_GITHUB_CHECK: 'CML',
CML_TENSORBOARD_DEV: 'CML',
// Remap environment variable prefixes so e.g. CML_COMMAND_OPTION becomes an
// an alias for CML_OPTION, regardless of the command it't referring to.
// See also https://github.com/yargs/yargs/issues/873#issuecomment-917441475
CML_ASSET: 'CML',
CML_CHECK: 'CML',
CML_COMMENT: 'CML',
CML_PR: 'CML',
CML_REPO: 'CML',
CML_RUNNER: 'CML',
CML_TENSORBOARD: 'CML',
CML_WORKFLOW: 'CML'
CML_CI: 'CML_REPO',
CML_PUBLISH: 'CML_ASSET',
CML_RERUN_WORKFLOW: 'CML_WORKFLOW',
CML_SEND_COMMENT: 'CML_COMMENT',
CML_SEND_GITHUB_CHECK: 'CML_CHECK',
CML_TENSORBOARD_DEV: 'CML_TENSORBOARD'
};

@@ -45,2 +34,20 @@

// Remap environment variable prefixes so e.g. CML_OPTION global options become
// an alias for CML_COMMAND_OPTION, to be interpreted by the appropriate subcommands.
// See also https://github.com/yargs/yargs/issues/873#issuecomment-917441475
for (const globalOption of ['DRIVER', 'DRIVER_TOKEN', 'LOG', 'REPO', 'TOKEN'])
for (const subcommand of [
'ASSET',
'CHECK',
'COMMENT',
'PR',
'REPO',
'RUNNER',
'TENSORBOARD',
'WORKFLOW'
])
if (process.env[`CML_${globalOption}`] !== undefined)
process.env[`CML_${subcommand}_${globalOption}`] =
process.env[`CML_${globalOption}`];
const legacyEnvironmentVariables = {

@@ -47,0 +54,0 @@ TB_CREDENTIALS: 'CML_TENSORBOARD_CREDENTIALS',

@@ -31,3 +31,3 @@ const fs = require('fs').promises;

yargs
.env('CML')
.env('CML_ASSET')
.option('options', { default: exports.options, hidden: true })

@@ -34,0 +34,0 @@ .options(exports.options);

@@ -18,3 +18,3 @@ const fs = require('fs').promises;

yargs
.env('CML')
.env('CML_CHECK')
.option('options', { default: exports.options, hidden: true })

@@ -21,0 +21,0 @@ .options(exports.options);

@@ -16,3 +16,3 @@ const kebabcaseKeys = require('kebabcase-keys');

yargs
.env('CML')
.env('CML_COMMENT')
.option('options', { default: exports.options, hidden: true })

@@ -19,0 +19,0 @@ .options(exports.options);

@@ -10,3 +10,3 @@ const { options, handler } = require('./pr/create');

.recommendCommands()
.env('CML')
.env('CML_PR')
.options(

@@ -13,0 +13,0 @@ Object.fromEntries(

@@ -24,3 +24,3 @@ const kebabcaseKeys = require('kebabcase-keys');

yargs
.env('CML')
.env('CML_PR')
.option('options', { default: exports.options, hidden: true })

@@ -27,0 +27,0 @@ .options(exports.options);

@@ -18,3 +18,3 @@ const kebabcaseKeys = require('kebabcase-keys');

yargs
.env('CML')
.env('CML_REPO')
.option('options', { default: exports.options, hidden: true })

@@ -21,0 +21,0 @@ .options(exports.options);

@@ -10,3 +10,3 @@ const { options, handler } = require('./runner/launch');

.recommendCommands()
.env('CML')
.env('CML_RUNNER')
.options(

@@ -13,0 +13,0 @@ Object.fromEntries(

@@ -452,3 +452,3 @@ const { join } = require('path');

yargs
.env('CML')
.env('CML_RUNNER')
.option('options', { default: exports.options, hidden: true })

@@ -455,0 +455,0 @@ .options(exports.options);

@@ -104,3 +104,3 @@ const fs = require('fs').promises;

yargs
.env('CML')
.env('CML_TENSORBOARD')
.option('options', { default: exports.options, hidden: true })

@@ -107,0 +107,0 @@ .options(exports.options);

@@ -16,3 +16,3 @@ const kebabcaseKeys = require('kebabcase-keys');

yargs
.env('CML')
.env('CML_WORKFLOW')
.option('options', { default: exports.options, hidden: true })

@@ -19,0 +19,0 @@ .options(exports.options);

{
"name": "@dvcorg/cml",
"version": "0.18.16",
"version": "0.18.17",
"description": "<p align=\"center\"> <img src=\"https://static.iterative.ai/img/cml/title_strip_trim.png\" width=400> </p>",

@@ -5,0 +5,0 @@ "author": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc