Mycroft-core: اقتراحات ل cli

تم إنشاؤها على ٢٠ أغسطس ٢٠١٩  ·  4تعليقات  ·  مصدر: MycroftAI/mycroft-core

ج: config أو: خيار التكوين ، لعرض / عرض / الإشارة إلى التكوين الجاري تشغيله. مفيد للعثور على وحدات بت التكوين الفردية بسهولة.

سيكون مفيدًا أيضًا خيار تعطيل إخراج الصوت عند الاستعلام من CLI. (: كتم الصوت؟) سيكون هذا نظريًا قابلاً للتهيئة حيث لن يرغب الجميع في أن يكون هادئًا.

أخيرًا ، سيكون الوضع الأقل طولًا أمرًا رائعًا. شيء من هذا القبيل: خيار مطول ربما لتشغيل / إيقاف عرض السجل. هذا لن يؤثر على تسجيل mycroft ، فقط العرض.

Enhancement - proposed help wanted

التعليق الأكثر فائدة

لقد انتهيت من استخدام الأداة المساعدة mycroft-config المستقلة التي تقوم بشيء مثل هذا:

mycroft-config:  Mycroft configuration manager
usage: mycroft-config [COMMAND] [params]

COMMANDs:
  edit (system|user)                  edit and validate config file
  reload                              instruct services to reload configs
  show (default|remote|system|user)   display the specified setting file
  set <var>                           set the variable (under USER)
  get [var]                           display a particular variable
                                      or all if no 'var' specified
Note: Use jq format for specifying <var>

Examples:
  mycroft-config edit user
  sudo mycroft-config edit system
  mycroft-config show remote
  mycroft-config get
  mycroft-config get enclosure.platform
  mycroft-config set test.subvalue "foo"

هل هذا يبدو كافيا؟ لن يكون من الصعب أيضًا إضافة وصول إلى هذا داخل CLI إذا كان مفضلاً.

ال 4 كومينتر

لقد انتهيت من استخدام الأداة المساعدة mycroft-config المستقلة التي تقوم بشيء مثل هذا:

mycroft-config:  Mycroft configuration manager
usage: mycroft-config [COMMAND] [params]

COMMANDs:
  edit (system|user)                  edit and validate config file
  reload                              instruct services to reload configs
  show (default|remote|system|user)   display the specified setting file
  set <var>                           set the variable (under USER)
  get [var]                           display a particular variable
                                      or all if no 'var' specified
Note: Use jq format for specifying <var>

Examples:
  mycroft-config edit user
  sudo mycroft-config edit system
  mycroft-config show remote
  mycroft-config get
  mycroft-config get enclosure.platform
  mycroft-config set test.subvalue "foo"

هل هذا يبدو كافيا؟ لن يكون من الصعب أيضًا إضافة وصول إلى هذا داخل CLI إذا كان مفضلاً.

إضافة موضع ترحيب في الواقع.

انظر PR # 2290 لأداة mycroft-config. رحب التعليقات!

يبدو رائع. لكي تكون مثاليًا تمامًا ، أقترح الإكمال التلقائي باستخدام علامة تبويب مزدوجة لمساعدة المستخدمين على التنقل عبر الخيارات (أعني الخيارات الممكنة داخل json) ، لذلك:
mycrot-co[tab-tab]nfig set encl[tab-tab]osure.[tab-tab]
كما ترى ، سيعرض الإكمال التلقائي جميع الخيارات داخل enclosure ...

هل كانت هذه الصفحة مفيدة؟
0 / 5 - 0 التقييمات