{"id":25082311,"url":"https://github.com/sh1kxrv/awwarecmds","last_synced_at":"2025-08-23T05:34:33.420Z","repository":{"id":130455302,"uuid":"230872009","full_name":"sh1kxrv/AwwareCmds","owner":"sh1kxrv","description":".NET Framework library","archived":false,"fork":false,"pushed_at":"2020-11-22T07:02:29.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T10:27:00.565Z","etag":null,"topics":["arguments","command-line","commands","cshrap","library","netframework"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sh1kxrv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-12-30T07:45:59.000Z","updated_at":"2020-11-22T07:02:31.000Z","dependencies_parsed_at":"2023-06-19T13:52:41.030Z","dependency_job_id":null,"html_url":"https://github.com/sh1kxrv/AwwareCmds","commit_stats":null,"previous_names":["sh1kxrv/awwarecmds"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sh1kxrv/AwwareCmds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh1kxrv%2FAwwareCmds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh1kxrv%2FAwwareCmds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh1kxrv%2FAwwareCmds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh1kxrv%2FAwwareCmds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sh1kxrv","download_url":"https://codeload.github.com/sh1kxrv/AwwareCmds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sh1kxrv%2FAwwareCmds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271745595,"owners_count":24813509,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arguments","command-line","commands","cshrap","library","netframework"],"created_at":"2025-02-07T05:29:39.322Z","updated_at":"2025-08-23T05:34:33.399Z","avatar_url":"https://github.com/sh1kxrv.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AwwareCmds\n.NET Framework library to help implement command line with your commands\n# Mini-Manual\n\u003cb\u003eWith modules\u003c/b\u003e\n```cs\nvar executer = new CommandService()\nexecuter.AttachModulesFromFolder(\"UR FOLDER\");\n```\n\u003cb\u003eIf your commands are in this assembly\u003c/b\u003e\n```cs\nvar executer = new CommandService()\nexecuter.AttachModule(Assembly.GetExecutingAssembly());\n```\n\n\u003ci\u003eFor more - see CmdTest and TestModule\u003c/i\u003e\n\n\u003cb\u003eHow to add command?\u003c/b\u003e\n```cs\n    public class TestCommand : AbstractCommand\n    {\n        public override string Name =\u003e \"Test Command\";\n\n        public override string InputCommand =\u003e \"test\";\n\n        public override string InputCommandAbbr =\u003e \"t\";\n\n        public override Task\u003cCommandResult\u003e CommandExecute(object[] attributes, string[] subcmds)\n        {\n            TaskCompletionSource\u003cCommandResult\u003e res = new TaskCompletionSource\u003cCommandResult\u003e();\n            res.SetResult(CommandResult.Default);\n            return res.Task;\n        }\n\n        public override void CommandInitialization()\n        {\n\n        }\n    }\n```\n\n\u003cb\u003eHow to use subcommands?\u003c/b\u003e\n```cs\n        public override Task\u003cCommandResult\u003e CommandExecute(object[] attributes, string[] subcmds)\n        {\n            TaskCompletionSource\u003cCommandResult\u003e res = new TaskCompletionSource\u003cCommandResult\u003e();\n            res.SetResult(CommandResult.Default);\n            //Instead 'args.SubCmds[0]' you can use args.IsSubcmd(INDEX, \"SUBCMD\");\n            if(subcmds[0] == \"test\") // -\u003e /CMD test\n            {\n              CommandService.Interactor.Info(\"It's 'test' subcommand\");\n              if(subcmds[1] == \"test2\") // -\u003e /CMD test test2\n              {\n                CommandService.Interactor.Info(\"It's 'test2' subcommand\");\n                //etc.\n              }\n            }\n            else if(subcmds[1] == \"test3\") // -\u003e /CMD test3\n            {\n              //Code\n            }\n            return res.Task;\n        }\n```\n\u003cb\u003eHow to use String arguments?\u003c/b\u003e\n```cs\n        public override Task\u003cCommandResult\u003e CommandExecute(object[] attributes, string[] subcmds)\n        {\n          TaskCompletionSource\u003cCommandResult\u003e res = new TaskCompletionSource\u003cCommandResult\u003e();\n          res.SetResult(CommandResult.Default);\n          if(subcmds[0] == \"str\") // -\u003e /CMD str \"My string\"\n          {\n            CommandService.Interactor.Info($\"Your string is '{attributes[0]}'\");\n          }\n          return res.Task;\n        }\n```\n\n\u003cb\u003eHow to use NumberArguments?\u003c/b\u003e\n```cs\n        public override Task\u003cCommandResult\u003e CommandExecute(object[] attributes, string[] subcmds)\n        {\n          TaskCompletionSource\u003cCommandResult\u003e res = new TaskCompletionSource\u003cCommandResult\u003e();\n          res.SetResult(CommandResult.Default);\n          if(subcmds[0] == \"numb\") // -\u003e /CMD numb 0.25 25\n          {\n            CommandService.Interactor.Info($\"Your first number is '{(double)attributes[0]}', your second numb is '{(int)attributes[1]}'\");\n          }\n          return res.Task;\n        }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh1kxrv%2Fawwarecmds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsh1kxrv%2Fawwarecmds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh1kxrv%2Fawwarecmds/lists"}