Commit Graph

51 Commits (26559388eab3fbfb7e8e435ce06d4dd8fd4969aa)

Author SHA1 Message Date
valdr bc3990a704 Fix a small typo in line 12
"inclding" -> "including"
2017-09-27 10:55:09 -05:00
Steve Penrod 23bebb707c Fix install from within Mycroft on Mark1/Picroft
MSM was invoking 'sudo chown' every time it installs new skills.
However the skill folder is already under the correct user when it
has been installed this way, so the chown is unnecessary.  Now we
check for the user and group before performing the action.
2017-09-18 13:04:45 -07:00
Steve Penrod dd36f6dfca Fix MSM permissions installing on Mark 1/Picroft
On a Raspbian platform, MSM was attempting to perform a 'sudo chown'
on the skill folder after the install using a sudo command.  When
running inside mycroft-core as the 'mycroft' user, there is no
'sudo' permission.  However, this step isn't even needed since the
user installed as mycroft and the folder has the correct permissions.
Now it checks the user and group before attempting to perform the
action.
2017-09-18 12:59:13 -07:00
Åke Forslund a3474e6f5a Fix typo. 2017-09-18 11:09:44 +02:00
Steve Penrod ef3a55c946 Review item clean up
Cleaning up several small problems found wiht new MSM during review:
* Message formatting
* Incorrect spelling on a env var used
2017-09-18 00:40:16 -07:00
Steve Penrod f0a34db74e Add 'msm remove', improve error handling and parsing
Semi-major rework of the Mycroft Skill Manager (MSM), including:
* Add parse skill name strings support for quoted strings, e.g.:
    msm install "daily meditation"
  Previously it would search for "daily" and also search for
  "meditation", but both independently.
* All commands return distinct error codes.  Commands with
  that perform multiple things, such as 'msm default' will
  continue on a failure of one skill and return the highest
  error code ultimately.
* Add 'msm remove', essentially the inverse of 'msm install'
* Changed the example install URL to a penrods repo since the
  ethanward repo no longer exists.
* Reworked skill list caching to behave properly with $( )
  subprocess operations.
* Output for "install" and "remove" is now between hyphen
  lines, making them easier to parse.
* Revamped many informational and error messages
* Published under Apache 2.0 license

A corresponding update to the skill-installer will take
advantage of these changes.
2017-09-17 13:00:23 -07:00
Matthew D. Scholefield 5b31047ccd Add check to see if on master branch in msm 2017-09-11 20:12:29 -05:00
Åke Forslund 0bd6c40694 Add fallback-aiml to defaults
====  Tech Notes ====
fallback-aiml was added to list of default skills in msm and the
requirement aiml==0.8.6 was added to requirements

====  Documentation Notes ====
NONE - description of a new feature or notes on behavior changes

==== Localization Notes ====
NONE - point to new strings, language specific functions, etc.

==== Environment Notes ====
NONE - new package requirements, new files being written to disk, etc.

==== Protocol Notes ====
NONE - message types added or changed, new signals, APIs, etc.
2017-08-18 02:13:01 -05:00
Steve Penrod 5e2567c481 General cleanup of Mycroft Skill Manager (msm) (#973)
Clean-up of many things about MSM:
* Improve help message, documenting all options
* Make the DEFAULT_SKILLS list readable (wrapped lines)
* Prefix messages with ERROR or WARNING
* Fix return codes, they can't be > 255.  301 and 303 are now 201 and 203
* Cache list of skills (instead of hitting web repeatedly)
* Improve code spacing, comments
* Improve format of output messages
* Sort skills from 'list' and 'search' commands
* Return result codes (was always 0)

====  Tech Notes ====
The "install" skill will be updated to use result codes instead
of searching for specific message strings.  It was already
broken due to mismatch of the success message string.

==== Localization Notes ====
With error codes, output strings are less important
2017-08-14 17:02:41 -05:00
Augusto Monteiro a5c35c785c Merge pull request #974 from forslund/feature/msm-man-page
Add manual page for msm
2017-08-09 13:40:36 -04:00
Åke Forslund 3dee3b5680 Add manual page for msm
==== Fixed Issues ====
#966

====  Tech Notes ====
Adds a basic manual page for msm, required for packaging for some OS'es

====  Documentation Notes ====
NONE

==== Localization Notes ====
Might need translation at some point

==== Environment Notes ====
msm/man1/msm should be copied into the manual man1 directory
(/usr/local/share/man/man1) and mandb needs to be run after a package
install.

==== Protocol Notes ====
NONE
2017-08-09 12:39:52 +02:00
el-tocino 08e76e538d added actions to the help section of msm. (#972)
Add actions to the help section of msm.
2017-08-09 08:09:18 +02:00
Matthew D. Scholefield fee8ffab59 Change skill-wolfram-alpha to fallback-wolfram-alpha
This is necessary because of the API breaking change
2017-08-03 13:49:32 -05:00
el-tocino 98ee790d33 altered return codes for dupe/missing 2017-08-02 01:29:18 -05:00
Åke Forslund a2e0f31dd3 Add playback-control skill to defaults 2017-07-31 13:37:17 +02:00
Augusto Monteiro aa52100247 Merge pull request #907 from el-tocino/Issue#887
Issue 887 -- msm mk1 fix
2017-07-13 12:47:10 -04:00
el-tocino 46d5fc7d33 mark_1 conditionals 2017-07-11 01:00:00 -05:00
Augusto Monteiro 'Sparky 0c9e9893a5 On msm default also updating skills 2017-07-06 14:23:23 -05:00
Augusto Monteiro 'Sparky f23028949c #871 - Checking only tracked files 2017-07-06 08:06:02 -07:00
Augusto Monteiro 'Sparky 31637173db #871 - Adding comment 2017-07-06 08:06:02 -07:00
Augusto Monteiro 'Sparky dfa64942ea #871 - Updating only if doesn't have commit 2017-07-06 08:06:02 -07:00
Augusto Monteiro 'Sparky 9d9429a664 #871 - Using grep -q 2017-07-06 08:06:02 -07:00
Augusto Monteiro 'Sparky ba8a496be4 #871 - Instead of deleting the file just add .pyc 2017-07-06 08:06:02 -07:00
Augusto Monteiro 'Sparky e54b74f23c #871 - Fixing skill update on msm 2017-07-06 08:06:02 -07:00
Augusto Monteiro 'Sparky cde749a2fa #871 - Updating all skills 2017-07-06 08:06:02 -07:00
el-tocino 25e1a07a89 dir loop fix? 2017-06-29 02:30:19 -05:00
el-tocino 1815ad3dfd that extra m in there needed to go. 2017-06-11 02:03:06 -05:00
el-tocino 6232eda3b9 default skills list restored, picroft chown command added, exit code output added. 2017-06-11 01:58:33 -05:00
el-tocino 2cdb327ce8 removed missing skills from default list. 2017-06-10 10:54:55 -05:00
el-tocino f587be4689 updated default list 2017-06-10 10:50:47 -05:00
el-tocino bf99770e71 skip to next item in loop if skill dir exists. 2017-06-10 01:21:29 -05:00
el-tocino d33765daf4 skip if skill dir exists. 2017-06-10 01:20:04 -05:00
el-tocino 1e32728fbf extraneous verbiage removed. 2017-06-09 11:55:09 -05:00
el-tocino 2f8093ebce spacing/virtualenv/spelling/parsing errors should be fixed 2017-06-09 11:47:24 -05:00
el-tocino 1773f75709 Consolidated skill list parsing in functions. 2017-06-08 02:12:44 -05:00
el-tocino 6884fc321a Correctly handle passing multiple items to install. 2017-06-08 02:04:56 -05:00
el-tocino 0bf9dcf1bb fail install if missing vwrapper 2017-06-08 01:58:44 -05:00
el-tocino f535fff4cf sudo on picroft pip seems to help some permission issues. 2017-06-08 01:54:30 -05:00
el-tocino f3453d0ffc changed the functions, error handling altered, default uses install, install handles a list, picroft/mycroft handled now. 2017-06-08 01:46:32 -05:00
Åke Forslund 986cf55d1b Use exit status of msm to determine install success
- msm will now return immediately if an error occurs
- install_default_skills now checks exit status instead of text output
2017-05-23 07:47:06 +02:00
Augusto Monteiro 'Sparky 876bc20f86 Adding demo skill 2017-05-18 16:53:10 -03:00
SoloVeniaASaludar 67cd3058d9 Update msm 2017-05-18 16:51:54 -03:00
SoloVeniaASaludar ed6772e5b9 bugfix/issue-680 2017-05-18 16:51:54 -03:00
Augusto Monteiro 'Sparky 7789db4e3c #706 - fixing on raspberry msm 2017-05-18 16:51:17 -03:00
kfezer@gmail.com d72af17c0e modified: msm/msm
Added singing as a defualt skill
2017-05-18 16:51:17 -03:00
Augusto Monteiro 'Sparky 6a0f608207 #696 - installing skills on connect 2017-05-18 16:49:07 -03:00
Augusto Monteiro 'Sparky 0e7e779712 #696 - msm breaking in all erros 2017-05-18 16:49:07 -03:00
Augusto Monteiro 'Sparky e21acc2d12 #686 - update skill should only update unchanged skills 2017-05-18 16:49:07 -03:00
Augusto Monteiro 'Sparky b2f2bab5fd #663 - Adding msm file 2017-04-14 19:41:00 -05:00
Augusto Monteiro 'Sparky 67cc90a7e1 #633 - deleting submodule 2017-04-14 19:41:00 -05:00