cmd

package
v0.5.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: BSD-3-Clause Imports: 32 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cmd provides utilities for managing apps and packages that use the Cogent Core framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(c *config.Config) error

Build builds an executable for the package at the config path for the config platforms.

func Changed

func Changed(c *config.Config) error

Changed concurrently prints all of the repositories within this directory that have been changed and need to be updated in Git.

func Install

func Install(c *config.Config) error

func Log

func Log(c *config.Config) error

Log prints the logs from your app running on Android to the terminal. Android is the only supported platform for log; use the -debug flag on run for other platforms.

func NextRelease

func NextRelease(c *config.Config) error

NextRelease releases the project with the current git version tag incremented by one patch version.

func Pack

func Pack(c *config.Config) error

Pack builds and packages the app for the target platform. For android, ios, and web, it is equivalent to build.

func Pull

func Pull(c *config.Config) error

Pull concurrently pulls all of the Git repositories within the current directory.

func Release

func Release(c *config.Config) error

Release releases the project with the specified git version tag.

func Run

func Run(c *config.Config) error

Run builds and runs the config package. It also displays the logs generated by the app. It uses the same config info as build.

func SetFFmpegEnv

func SetFFmpegEnv()

SetFFmpegEnv sets the environment of the core command for building and running apps with the FFmpeg installed in [ffmpegDir] by core setup -video, if any: its pkg-config files, and its shared libraries for the apps (an rpath on Linux, and the PATH on Windows, for core run). With FFmpeg of Homebrew that is not linked (ffmpeg@9), its pkg-config files.

func Setup

func Setup(c *config.Config) error

Setup installs platform-specific dependencies for the current platform, and the latest versions of the Go tools for developing with Cogent Core: goimports, goalimports, and goalls (which core update keeps updated). It only needs to be called once per system.

With the video option, it also installs FFmpeg for the video package (cogentcore.org/core/video), which it needs on desktop platforms. With the androidsim option, it also installs the Android SDK and makes an Android virtual device for the emulator (see mobile.SetupAndroidSim).

func Update added in v0.5.8

func Update(c *config.Config) error

Update updates the core command and the tools that it uses to their latest versions: the core command itself (from the main branch, as it is installed), the GoScript compiler and bun that the js platform uses, if they are installed, and the Go tools for developing with Cogent Core (goimports, goalimports, and goalls), which it installs if they are not installed. A tool built from a local source checkout is not replaced unless the force option is set, and the check option only reports which tools have updates. With the video option, it also updates FFmpeg for the video package (see core setup -video).

Types

This section is empty.

Directories

Path Synopsis
Package config contains the configuration structs for the Cogent Core tool.
Package config contains the configuration structs for the Cogent Core tool.
Package generate provides the generation of useful methods, variables, and constants for Cogent Core code.
Package generate provides the generation of useful methods, variables, and constants for Cogent Core code.
Package mobile provides functions for building Cogent Core apps for mobile devices.
Package mobile provides functions for building Cogent Core apps for mobile devices.
binres
Package binres implements encoding and decoding of android binary resources.
Package binres implements encoding and decoding of android binary resources.
sdkpath
Package sdkpath provides functions for locating the Android SDK.
Package sdkpath provides functions for locating the Android SDK.
Package web provides functions for building Cogent Core apps for the web.
Package web provides functions for building Cogent Core apps for the web.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL