{"id":19458657,"url":"https://github.com/pharo-spec/commander2","last_synced_at":"2025-08-08T21:16:22.673Z","repository":{"id":83914677,"uuid":"154545851","full_name":"pharo-spec/Commander2","owner":"pharo-spec","description":"Flexible implementation of the command design pattern.","archived":false,"fork":false,"pushed_at":"2019-10-10T06:43:19.000Z","size":222,"stargazers_count":1,"open_issues_count":6,"forks_count":3,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-25T11:48:32.208Z","etag":null,"topics":["pharo"],"latest_commit_sha":null,"homepage":"","language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pharo-spec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-24T18:03:18.000Z","updated_at":"2020-02-20T13:59:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a22103c9-df78-4ce4-8c4a-91d3ef6db98a","html_url":"https://github.com/pharo-spec/Commander2","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/pharo-spec/Commander2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-spec%2FCommander2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-spec%2FCommander2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-spec%2FCommander2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-spec%2FCommander2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pharo-spec","download_url":"https://codeload.github.com/pharo-spec/Commander2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pharo-spec%2FCommander2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267329451,"owners_count":24069865,"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-07-27T02:00:11.917Z","response_time":82,"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":["pharo"],"created_at":"2024-11-10T17:28:01.790Z","updated_at":"2025-07-27T08:33:48.796Z","avatar_url":"https://github.com/pharo-spec.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Commander 2\n[![Build Status](https://travis-ci.org/pharo-spec/Commander2.svg?branch=master)](https://travis-ci.org/pharo-spec/Commander2)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/PolyMathOrg/DataFrame/master/LICENSE)\n[![Pharo version](https://img.shields.io/badge/Pharo-8.0-%23aac9ff.svg)](https://pharo.org/download)\n\nImplementation of the command design pattern with the following objectives:\n- Simple model of commands\n- Ease reusability of commands accross multiple tools / framework\n- Instance of commands can be modified (e.g., name, description, etc...)\n- Pluging custom user-command made easy\n\n## Install\n\n```Smalltalk\nMetacello new\n\trepository: 'github://pharo-spec/Commander2/src';\n\tbaseline: 'Commander2';\n\tload\n```\n\n## Example\n\n\u003e Note: This example is now shipped with the Spec2 integration which is managed by [Spec2 project](https://github.com/pharo-spec/Spec).\n\u003e The code is thus no longer available in this repository.\n\n`Commander2-ContactBook` package contains an example of Commander2 usage in the context of a Spec application.\n\nThe following code should be checked when learning how to use the framework:\n\n- `CmContactBookCommand` and subclasses are the definition of commands required by the example application.\n- `CmContactBookPresenter class\u003e\u003e#buildCommandsGroupWith:forRoot:` This method is the entry point to describe commands available to your Spec presenter. One can learn how to build group of commands from this method.\n- `CmContactBookPresenter\u003e\u003e#initializeWidgets` This method shows how to inject a Spec's `MenuPresenter` built from a command group in your presenter.\n- `CmContactBookPresenter\u003e\u003e#initializeWindow:` This method shows how to bind the shortcuts defined by your command group to your Spec presenter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-spec%2Fcommander2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpharo-spec%2Fcommander2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpharo-spec%2Fcommander2/lists"}