balena-cli
Version:
The official balena Command Line Interface
149 lines (148 loc) • 4.5 kB
TypeScript
import { Command } from '@oclif/core';
export default class LocalConfigureCmd extends Command {
static description: string;
static examples: string[];
static args: {
target: import("@oclif/core/lib/interfaces").Arg<string, Record<string, unknown>>;
};
static root: boolean;
static offlineCompatible: boolean;
run(): Promise<void>;
readonly CONNECTIONS_FOLDER = "/system-connections";
getConfigurationSchema(bootPartition?: number, connectionFileName?: string): {
mapper: ({
template: {
persistentLogging: string;
hostname?: undefined;
developmentMode?: undefined;
wifi?: undefined;
'wifi-security'?: undefined;
};
domain: string[][];
} | {
template: {
hostname: string;
persistentLogging?: undefined;
developmentMode?: undefined;
wifi?: undefined;
'wifi-security'?: undefined;
};
domain: string[][];
} | {
template: {
developmentMode: string;
persistentLogging?: undefined;
hostname?: undefined;
wifi?: undefined;
'wifi-security'?: undefined;
};
domain: string[][];
} | {
template: {
wifi: {
ssid: string;
};
'wifi-security': {
psk: string;
};
persistentLogging?: undefined;
hostname?: undefined;
developmentMode?: undefined;
};
domain: string[][];
})[];
files: {
system_connections: {
fileset: boolean;
type: string;
location: {
path: string;
partition: number | undefined;
};
};
config_json: {
type: string;
location: {
path: string;
partition: number | undefined;
};
};
};
};
inquirerOptions: (data: any) => ({
message: string;
type: string;
name: string;
default: any;
when?: undefined;
} | {
message: string;
type: string;
name: string;
default: any;
when(answers: any): any;
})[];
getConfiguration: (data: any) => Promise<any>;
readonly CONNECTION_FILE: string;
prepareConnectionFile(target: string): Promise<{
mapper: ({
template: {
persistentLogging: string;
hostname?: undefined;
developmentMode?: undefined;
wifi?: undefined;
'wifi-security'?: undefined;
};
domain: string[][];
} | {
template: {
hostname: string;
persistentLogging?: undefined;
developmentMode?: undefined;
wifi?: undefined;
'wifi-security'?: undefined;
};
domain: string[][];
} | {
template: {
developmentMode: string;
persistentLogging?: undefined;
hostname?: undefined;
wifi?: undefined;
'wifi-security'?: undefined;
};
domain: string[][];
} | {
template: {
wifi: {
ssid: string;
};
'wifi-security': {
psk: string;
};
persistentLogging?: undefined;
hostname?: undefined;
developmentMode?: undefined;
};
domain: string[][];
})[];
files: {
system_connections: {
fileset: boolean;
type: string;
location: {
path: string;
partition: number | undefined;
};
};
config_json: {
type: string;
location: {
path: string;
partition: number | undefined;
};
};
};
}>;
removeHostname(schema: any): Promise<void>;
}