@@ -7,7 +7,7 @@ const libClient = require('../client.js');
7
7
const { getAllFiles, showConsoleLink } = require('../utils.js');
8
8
const { Command } = require('commander');
9
9
const { sdkForProject, sdkForConsole } = require('../sdks')
10
- const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
10
+ const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
11
11
const { localConfig, globalConfig } = require("../config");
12
12
const { File } = require('undici');
13
13
const { ReadableStream } = require('stream/web');
@@ -72,13 +72,6 @@ const {{ service.name | caseLower }}{{ method.name | caseUcfirst }} = async ({
72
72
{%- if method .type == ' location' -%}, destination{%- endif -%}
73
73
{% if hasConsolePreview(method .name ,service .name ) %}, console{%- endif -%}
74
74
}) => {
75
- {% if method .deprecated %}
76
- {% if method .since and method .replaceWith %}
77
- console.warn('Warning: This command is deprecated since {{ method .since }}.{% if method .replaceWith %} Please use "{{ method .replaceWith | replace({' .' : ' ' }) | caseKebab }}" instead.{% endif %}');
78
- {% else %}
79
- console.warn('Warning: This command is deprecated.');
80
- {% endif %}
81
- {% endif %}
82
75
let client = !sdk ? await {% if service .name == " projects" %}sdkForConsole(){% else %}sdkForProject(){% endif %} :
83
76
sdk;
84
77
let apiPath = '{{ method .path }}'{% for parameter in method .parameters .path %}.replace('{{ ' {' }}{{ parameter .name | caseCamel }}{{ ' }' }}', {{ parameter .name | caseCamel | escapeKeyword }}){% endfor %};
0 commit comments