2020-12-10 12:30:17 +00:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright 2020 Balena Ltd.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
2023-09-06 14:39:31 +00:00
|
|
|
import { Args } from '@oclif/core';
|
2020-12-10 12:30:17 +00:00
|
|
|
import { lowercaseIfSlug } from './normalization';
|
|
|
|
|
2023-09-06 14:39:31 +00:00
|
|
|
export const fleetRequired = Args.string({
|
2022-07-15 15:01:37 +00:00
|
|
|
description: 'fleet name or slug (preferred)',
|
2020-12-10 12:30:17 +00:00
|
|
|
required: true,
|
|
|
|
parse: lowercaseIfSlug,
|
2023-09-06 14:39:31 +00:00
|
|
|
});
|