Merge pull request #1792 from balena-io/ts-lib-actions-index

Convert lib/actions/index.coffee to typescript
This commit is contained in:
Page- 2020-04-30 17:53:29 +01:00 committed by GitHub
commit 0f6d160b2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 34 deletions

View File

@ -1,34 +0,0 @@
###
Copyright 2016-2017 Balena
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.
###
module.exports =
apiKey: require('./api-key')
app: require('./app')
auth: require('./auth')
device: require('./device')
tags: require('./tags')
logs: require('./logs')
local: require('./local')
help: require('./help')
os: require('./os')
config: require('./config')
ssh: require('./ssh')
build: require('./build').build
deploy: require('./deploy').deploy
util: require('./util')
preload: require('./preload').preload
push: require('./push')
tunnel: require('./tunnel')

53
lib/actions/index.ts Normal file
View File

@ -0,0 +1,53 @@
/*
Copyright 2016-2020 Balena
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.
*/
import * as apiKey from './api-key';
import * as app from './app';
import * as auth from './auth';
import * as config from './config';
import * as device from './device';
import * as help from './help';
import * as local from './local';
import * as logs from './logs';
import * as os from './os';
import * as push from './push';
import * as ssh from './ssh';
import * as tags from './tags';
import * as tunnel from './tunnel';
import * as util from './util';
export {
apiKey,
app,
auth,
device,
tags,
logs,
local,
help,
os,
config,
ssh,
util,
push,
tunnel,
};
export { build } from './build';
export { deploy } from './deploy';
export { preload } from './preload';