Skip to content

[docfixed]: dev-cli, ao init --lang options are 'lua' and 'c'#1098

Open
RyanKung wants to merge 2 commits intopermaweb:mainfrom
RyanKung:fix_dev_cli_lang_args_should_be_c
Open

[docfixed]: dev-cli, ao init --lang options are 'lua' and 'c'#1098
RyanKung wants to merge 2 commits intopermaweb:mainfrom
RyanKung:fix_dev_cli_lang_args_should_be_c

Conversation

@RyanKung
Copy link
Contributor

@RyanKung RyanKung commented Jan 5, 2025

The current ao init --help <project_name> output shows the following:

~/ai_repub » ao init --help

Usage:   ao init -l cpp <my-project-name>
Version: 0.1.7

Description:

  Create an ao Process Source Project

Options:

  -h, --help              - Show this help.
  -l, --lang  <language>  - The starter to use. Defaults to Lua. Options are "lua" and "cpp"

However, the actual supported options are "lua" and "c", which matches the structure inside the folder.
Using "cpp" will fallback to lua (as default).

 ls ~/.ao/starters                                                                                                                          1 ↵
c  lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants