{"id":13465310,"url":"https://github.com/giginet/Toybox","last_synced_at":"2025-03-25T16:31:36.329Z","repository":{"id":63910936,"uuid":"67920889","full_name":"giginet/Toybox","owner":"giginet","description":"🧸 Xcode Playground management made easy","archived":false,"fork":false,"pushed_at":"2019-10-22T08:00:24.000Z","size":958,"stargazers_count":130,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-14T09:53:20.820Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giginet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-11T09:13:29.000Z","updated_at":"2024-07-26T21:50:39.000Z","dependencies_parsed_at":"2022-11-29T07:15:38.561Z","dependency_job_id":null,"html_url":"https://github.com/giginet/Toybox","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/giginet%2FToybox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FToybox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FToybox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FToybox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giginet","download_url":"https://codeload.github.com/giginet/Toybox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221671445,"owners_count":16861257,"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":[],"created_at":"2024-07-31T15:00:26.764Z","updated_at":"2024-10-29T17:30:44.241Z","avatar_url":"https://github.com/giginet.png","language":"Swift","funding_links":[],"categories":["Misc","Developer Tools","Misc [🔝](#readme)"],"sub_categories":["Vim"],"readme":"# Toybox\n\n[![Build Status](https://travis-ci.org/giginet/Toybox.svg?branch=master)](https://travis-ci.org/giginet/Toybox)\n[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/giginet/Toybox/master/LICENSE.md) \n[![GitHub release](https://img.shields.io/github/release/giginet/Toybox.svg)](https://github.com/giginet/Toybox/releases)\n[![Language](https://img.shields.io/badge/language-Swift%205.0-orange.svg)](https://swift.org)\n\n\nToybox made easy to manage Xcode Playgrounds.\n\nYou can create and open Xcode Playground from CLI.\n\n```\n$ toybox create Snippet\n# Generate ~/.toybox/Snippet.playground and open with Xcode\n```\n\nThis product is under development so interfaces might change.\n\n## Before Toybox\n\n![](Documentation/Images/before.gif)\n\n## Using Toybox\n\n![](Documentation/Images/after.gif)\n\n## Installation\n\nToybox requires High Sierra or above.\n\n### Homebrew\n\n```console\n$ brew tap giginet/toybox https://github.com/giginet/Toybox.git\n$ brew install giginet/toybox/toybox\n$ toybox version\n```\n\nIf you got error on tapping the formula. try `brew untap giginet/toybox` before.\n\n### Mint\n\nInstall [yonaskolb/Mint](https://github.com/yonaskolb/Mint).\n\n```console\n$ mint install giginet/toybox\n```\n\n## Features\n\n### Create new Playground\n\n```sh\n# Create 'UIKitDemo.playground' for iOS\n$ toybox create UIKitDemo\n# Create a new Playground which is not saved\n$ toybox create\n# Create a new auto generated named Playground which is saved like 20190404082446.playground\n$ toybox create -s\n# Create 'SpriteKit.playground' for macOS\n$ toybox create SpriteKitDemo --platform macos\n# Overwrite existing playground 'UIKitDemo'\n$ toybox create UIKitDemo -f\n# Create but don't open with Xcode\n$ toybox create UIKitDemo --no-open\n# Create and open with specific Xcode\n$ toybox create UIKitDemo --xcode-path /Application/Xcode7.3.app\n$ toybox create UIKitDemo --xcode-version 11.1\n# Create Playground from standard input\n$ echo 'print(\"Hello World\")' | toybox create --input\n```\n\nCreated Playgrounds will be saved under `$HOME/.toybox`\n\n### List Playgrounds\n\n```sh\n# List all existing playgrounds\n$ toybox list\n# List all playgrounds of specific platform\n$ toybox list --platform ios\n```\n\n### Open Playground\n\n```sh\n# Open UIKitDemo.playground with default Xcode\n$ toybox open UIKitDemo\n# Open UIKitDemo.playground with specific Xcode\n$ toybox open UIKitDemo --xcode-path /Application/Xcode7.3.app\n$ toybox open UIKitDemo --xcode-version 11.1\n```\n\n### Other\n\n```sh\n# Display current Toybox version\n$ toybox version\n# Display path to Toybox root directory,\n# It should return '$HOME/.toybox'\n$ toybox root\n```\n\n## Extra Usage\n\nOpen existing playgrouds with [peco](https://github.com/peco/peco)\n\n```sh\ntoybox list | peco | awk '{print $1}' | xargs toybox open\n\n```\n\n## Development\n\n### Xcode 11\n\nOpen `Toybox` directory with Xcode 11 directly.\n\n### Under Xcode 10.2\n\n```console\n$ swift package generate-xcodeproj\n$ open Toybox.xcodeproj\n```\n\n## Author\n\ngiginet \u003c\u003cgiginet.net@gmail.com\u003e\u003e\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiginet%2FToybox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiginet%2FToybox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiginet%2FToybox/lists"}