{"action":"opened","issue":{"url":"https://api.github.com/repos/Xmashine/PyTerm/issues/1","repository_url":"https://api.github.com/repos/Xmashine/PyTerm","labels_url":"https://api.github.com/repos/Xmashine/PyTerm/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Xmashine/PyTerm/issues/1/comments","events_url":"https://api.github.com/repos/Xmashine/PyTerm/issues/1/events","html_url":"https://github.com/Xmashine/PyTerm/issues/1","id":171767947,"number":1,"title":"IOkit.py - IOmatch() optimization","user":{"login":"Xmashine","id":18101935,"avatar_url":"https://avatars.githubusercontent.com/u/18101935?v=3","gravatar_id":"","url":"https://api.github.com/users/Xmashine","html_url":"https://github.com/Xmashine","followers_url":"https://api.github.com/users/Xmashine/followers","following_url":"https://api.github.com/users/Xmashine/following{/other_user}","gists_url":"https://api.github.com/users/Xmashine/gists{/gist_id}","starred_url":"https://api.github.com/users/Xmashine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xmashine/subscriptions","organizations_url":"https://api.github.com/users/Xmashine/orgs","repos_url":"https://api.github.com/users/Xmashine/repos","events_url":"https://api.github.com/users/Xmashine/events{/privacy}","received_events_url":"https://api.github.com/users/Xmashine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-17T21:44:17Z","updated_at":"2016-08-17T21:44:17Z","closed_at":null,"body":"In IOkit.py function `IOmatch`isn't optimized, it could get resources from another file and use the `switch(IOcode)`\r\n```Python\r\n\r\ndef IOmatch(IOcode):\r\n    LogCat.append(IOcode)\r\n    if IOcode == CommandsArray[0]:\r\n        print(CommandsArray[0] + \" - Create an Alias (Shortcut) linked to another file or directory\")\r\n    elif IOcode == \"\":\r\n        print(\"Error: Empty request\")\r\n\r\n```\r\n\r\n```Python\r\nimport IOprotocol\r\n\r\nswitch(IOcode):\r\n    case CommandsArray[0]:\r\n    print (CommandsArray[0] + IOprotocol.DescriptionsArray[0])\r\n```"}}
{"actor":{"display_login":"Xmashine"}}