Create a "device-management" subcommand

pull/7844/head
Jimmy Brisson 2018-08-13 17:56:04 +01:00 committed by Jimmy Brisson
parent 03fa626eda
commit ebb016e270
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
#! /usr/bin/env python2
"""
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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.
device-management, dev-mgmt, and dm sub command
"""
from __future__ import print_function
from builtins import str
import sys
import json
from time import sleep
from shutil import copy
from os.path import join, abspath, dirname
from json import load, dump
# Be sure that the tools directory is in the search path
ROOT = abspath(join(dirname(__file__), ".."))
sys.path.insert(0, ROOT)
def main():
print("device management!")
if __name__ == "__main__":
main()