sendamaphp/console 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sendamaphp/console

最新稳定版本:0.1.18

Composer 安装命令:

composer require sendamaphp/console

包简介

A simple CLI for creating and managing sendama-engine projects.

README 文档

README

by amasiye313@gmail.com

What is it?

Sendama CLI is a console application that provides a command line interface for the Sendama 2D Game Engine. It is used to create, build, run and manage Sendama projects.

Screenshot

Requirements

  • PHP 8.3 or newer
  • WSL (For Windows)
  • Composer 2.7.1 or later
  • Sendama 2D Game Engine

Installation

For Linux, BSD etc

To install Sendama CLI, run the following command in your terminal:

composer global require sendamaphp/console

If you haven't already, add Composer's system-wide vendor bin directory to your $PATH. This directory is at ~/.composer/vendor/bin or ~/.config/composer/vendor/bin.

export PATH="$PATH:$HOME/.composer/vendor/bin"

Alternatively, you can link the sendama executable to a directory that is already in your $PATH. For example, you can link it to /usr/local/bin:

sudo ln -s ~/.composer/vendor/bin/sendama /usr/local/bin/sendama

or

sudo ln -s ~/.config/composer/vendor/bin/sendama /usr/local/bin/sendama

Then, you can run the sendama command in your terminal.

sendama --help

For Windows

From the WSL terminal follow Linux instructions

OSX

From the OSX terminal follow Linux instructions

Usage

sendama [command] [options] [arguments]

Options

  • --help or -h displays help for the command
  • --quiet or -q suppresses output
  • --verbose or -v|vv|vvv increases output verbosity
  • --version or -V displays the application version
  • --ansi or -a forces ANSI output
  • --no-ansi or -A disables ANSI output
  • --no-interaction or -n disables interaction

Available Commands

Completion

Dump shell completion code for the specified shell (bash, fish, zsh, or PowerShell).

sendama completion

Help

Displays help for a command

sendama help

List

Lists commands

sendama list

Create a new project

Create a new Sendama project

sendama new:game mygame

or

sendama new mygame

Arguments

  • name is the name of the project
  • directory is the path to the project directory

Generate a new scene

sendama generate:scene myscene

Generate a new texture

sendama generate:texture mytexture

Generate a new texture with a specific size

sendama generate:texture mytexture --width=32 --height=32

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-19