Conversation
… add example usage and documentation
- Updated repository references in documentation to reflect the new project name. - Modified the `build` command to support project mode, allowing builds without specifying a file if `kode.toml` is present. - Enhanced the `new` command to create a structured project layout, including `src/`, `main.kode`, and `kode.toml` with default configurations. - Implemented automatic project entry point detection in the `run` command, enabling execution without file arguments when a project is detected. - Improved the `typer` to support additional native module namespaces. - Updated `.gitignore` files to reflect Kode build artifacts and project structure. - Revised example `main.kode` to demonstrate project usage and structure. - Created a new `project.go` file to handle project configuration loading and defaults. - Added a README.md for the test project to guide users on usage and structure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces and documents the new production-ready
serverstandard library module for Kode, updates the module system documentation to reflect the new import resolution order, and standardizes the use of thefnkeyword (removingfunc) throughout the codebase and documentation. It also updates project metadata (authors, copyright, version), adds comprehensive server module documentation and examples, and clarifies the project status and roadmap.Server module and module system updates:
serverstandard library module, including documentation, usage examples, and a sample HTTP server inexamples/http_server/main.kode. The server module provides HTTP routing, middleware, response helpers, and static file serving, all backed by Go'snet/http(docs/syntax.md,examples/http_server/main.kode,docs/MODULES.md,docs/PROJECT_STATUS.md,docs/roadmap.md). (Fc2db23fL1368R1523, [1] F0a69259L335R350, [2] [3] [4] [5] [6]stdlib/(for standard library) → project directory. Documentation and status tables updated accordingly (docs/MODULES.md,docs/PROJECT_STATUS.md). (F0a69259L335R350, docs/PROJECT_STATUS.mdL155-R156)Language and codebase consistency:
fn(removingfunc) across all documentation and example code, including modules, error handling, and concurrency examples (examples/advanced_modules.kode,examples/basic.kode,examples/calculator.kode,examples/concurrency.kode,examples/error_handling.kode,docs/PROJECT_STATUS.md,docs/syntax.md). [1] [2] [3] [4] [5] [6] [7]Project metadata and documentation:
LICENSEfile to "ECOCEE" and year 2026 (LICENSE,docs/roadmap.md,docs/syntax.md). [1] [2] [3] [4] [5]docs/PROJECT_STATUS.md,docs/wiki.md,docs/roadmap.md). [1] [2] [3] [4]Miscellaneous improvements:
docs/MODULES.md,docs/wiki.md). [1] [2] [3]docs/syntax.md). (docs/syntax.mdR26, Fc2db23fL1368R1523)