{"id":21520947,"url":"https://github.com/globalwebindex/cmd-extra","last_synced_at":"2025-10-13T04:43:36.197Z","repository":{"id":49042017,"uuid":"87835981","full_name":"GlobalWebIndex/cmd-extra","owner":"GlobalWebIndex","description":"Extra functions for working with Cmds","archived":false,"fork":false,"pushed_at":"2023-07-12T02:40:16.000Z","size":123,"stargazers_count":7,"open_issues_count":1,"forks_count":2,"subscribers_count":35,"default_branch":"master","last_synced_at":"2025-03-24T00:14:30.408Z","etag":null,"topics":["elm","elm-architecture"],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/GlobalWebIndex/cmd-extra/latest/","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GlobalWebIndex.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":"CODEOWNERS","security":null,"support":null}},"created_at":"2017-04-10T16:59:13.000Z","updated_at":"2024-08-08T08:18:39.000Z","dependencies_parsed_at":"2022-09-26T16:31:14.860Z","dependency_job_id":null,"html_url":"https://github.com/GlobalWebIndex/cmd-extra","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlobalWebIndex%2Fcmd-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlobalWebIndex%2Fcmd-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlobalWebIndex%2Fcmd-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GlobalWebIndex%2Fcmd-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GlobalWebIndex","download_url":"https://codeload.github.com/GlobalWebIndex/cmd-extra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120179,"owners_count":21050903,"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","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":["elm","elm-architecture"],"created_at":"2024-11-24T01:04:59.360Z","updated_at":"2025-10-13T04:43:31.165Z","avatar_url":"https://github.com/GlobalWebIndex.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cmd.Extra\n\nExperimental package with helpful functions for working with Cmd.\n\nThis package can help you with construction of `Cmd msg` and composition of pair `(model, Cmd msg)` that can be used to streamline your flow of actions in `update`.\n\n```elm\n    type Msg\n        = NoOp\n        | Disarm\n        | Fire\n        | FireRockets\n\n    update : Msg -\u003e Model -\u003e ( Model, Cmd Msg )\n    update msg model =\n        case msg of\n            DoNothing -\u003e\n                Cmd.Extra.pure model\n                -- equivalent of (model, Cmd.none)\n\n            Disarm -\u003e\n                Cmd.Extra.withTrigger NoOp model\n                -- equivalent of (model, Cmd.Extra.perform NoOp)\n\n            Fire -\u003e\n                ( model, Cmd.Extra.perform FireRockets )\n\n            FireRockets -\u003e\n                Rockets.Nukes.fire\n\n```\n\nFeedback and contributions are very welcome.\n\n\n## License\n\nBSD 3-Clause License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobalwebindex%2Fcmd-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobalwebindex%2Fcmd-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobalwebindex%2Fcmd-extra/lists"}