mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-08 11:33:42 +00:00
Major agent update.
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
/*
|
||||
Copyright 2018 Intel Corporation
|
||||
|
||||
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.
|
||||
*/
|
||||
|
||||
|
||||
var db;
|
||||
if (process.platform == 'win32')
|
||||
@@ -14,6 +30,11 @@ if (process.argv.length > 1)
|
||||
{
|
||||
switch(process.argv[1])
|
||||
{
|
||||
case 'compact':
|
||||
db.Compact();
|
||||
console.log('Compacted');
|
||||
process.exit();
|
||||
break;
|
||||
case 'put':
|
||||
console.log('PUT ' + process.argv[2] + ' = ' + process.argv[3]);
|
||||
db.Put(process.argv[2], process.argv[3]);
|
||||
@@ -63,3 +84,9 @@ if (process.argv.length > 1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
console.log('[get/put/delete/export/import] [KEY] [args]');
|
||||
console.log(' Commonly used keys are: disableUpdate and noUpdateCoreModule');
|
||||
process.exit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user