Skip to content

Commit 0fd68d7

Browse files
docs: juno functions init instead of eject (#710)
* docs: juno functions init instead of eject Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * 📄 Update LLMs.txt snapshot for PR review * chore: fmt Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 15c2136 commit 0fd68d7

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.llms-snapshots/llms-full.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,7 +2378,7 @@ Understand the full journey of Serverless Functions in Juno, from setup and deve
23782378

23792379
## Initial Setup
23802380

2381-
If you didn’t use a template or skipped the language selection during setup, you can run `juno functions eject` at the root of your project. This command configures your project with the appropriate setup based on your language of choice. For Rust, it includes a `Cargo.toml` and a `lib.rs` file. For TypeScript, it sets up an `index.ts` file.
2381+
If you didn’t use a template or skipped the language selection during setup, you can run `juno functions init` at the root of your project. This command configures your project with the appropriate setup based on your language of choice. For Rust, it includes a `Cargo.toml` and a `lib.rs` file. For TypeScript, it sets up an `index.ts` file.
23822382

23832383
---
23842384

@@ -2513,7 +2513,7 @@ A quick reference for the most common CLI commands and deployment workflows when
25132513

25142514
| Command(s) | Scenario |
25152515
| --- | --- |
2516-
| `juno functions eject` | Initializes your project for writing serverless functions. |
2516+
| `juno functions init` | Initializes your project for writing serverless functions. |
25172517
| `juno emulator start` | Starts the emulator. |
25182518
| `juno functions build` | Compiles your custom Satellite's code. Changes are automatically redeployed locally. |
25192519

@@ -2938,7 +2938,7 @@ include_satellite!();
29382938

29392939
## Feature Selection
29402940

2941-
When you run `juno functions eject`, all the available hooks and assertions are scaffolded in your `lib.rs` module. However, if you don’t have to implement all of them for example to improve readability or reduce unnecessary logic, you can selectively enable only the features you need.
2941+
When you run `juno functions init`, all the available hooks and assertions are scaffolded in your `lib.rs` module. However, if you don’t have to implement all of them for example to improve readability or reduce unnecessary logic, you can selectively enable only the features you need.
29422942

29432943
To do this, disable the default features in your `Cargo.toml` and explicitly specify only the ones you want to use.
29442944

@@ -10695,7 +10695,7 @@ Usage: juno dev wait [options]Options: -t, --timeout Timeout for the em
1069510695
Build and upgrade your satellite's serverless functions.
1069610696

1069710697
```
10698-
Usage: juno functions <subcommand> [options]Subcommands: build Build your functions. eject Scaffold the necessary files for developing your serverless functions. init Alias for eject. publish Publish a new version of your functions. upgrade Upgrade your satellite's serverless functions.Notes:- The local server supports live reloading.- You can use fn as a shortcut for functions.
10698+
Usage: juno functions <subcommand> [options]Subcommands: build Build your functions. init Scaffold the necessary files for developing your serverless functions. publish Publish a new version of your functions. upgrade Upgrade your satellite's serverless functions.Notes:- The local server supports live reloading.- You can use fn as a shortcut for functions.
1069910699
```
1070010700

1070110701
---
@@ -10715,7 +10715,7 @@ Usage: juno functions build [options]Options: -l, --lang Specify the
1071510715
Generate the required files to begin developing serverless functions in your project.
1071610716

1071710717
```
10718-
Usage: juno functions eject [options]Options: -l, --lang Specify the language for building the serverless functions: rust, typescript or javascript. -h, --help Output usage information.Notes:- Language can be shortened to rs for Rust, ts for TypeScript and mjs for JavaScript.
10718+
Usage: juno functions init [options]Options: -l, --lang Specify the language for building the serverless functions: rust, typescript or javascript. -h, --help Output usage information.Notes:- Language can be shortened to rs for Rust, ts for TypeScript and mjs for JavaScript.
1071910719
```
1072010720

1072110721
---

docs/build/functions/development/rust.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ include_satellite!();
2222

2323
## Feature Selection
2424

25-
When you run `juno functions eject`, all the available hooks and assertions are scaffolded in your `lib.rs` module. However, if you don’t have to implement all of them for example to improve readability or reduce unnecessary logic, you can selectively enable only the features you need.
25+
When you run `juno functions init`, all the available hooks and assertions are scaffolded in your `lib.rs` module. However, if you don’t have to implement all of them for example to improve readability or reduce unnecessary logic, you can selectively enable only the features you need.
2626

2727
To do this, disable the default features in your `Cargo.toml` and explicitly specify only the ones you want to use.
2828

docs/build/functions/lifecycle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Understand the full journey of Serverless Functions in Juno, from setup and deve
66

77
## Initial Setup
88

9-
If you didn’t use a template or skipped the language selection during setup, you can run `juno functions eject` at the root of your project. This command configures your project with the appropriate setup based on your language of choice. For Rust, it includes a `Cargo.toml` and a `lib.rs` file. For TypeScript, it sets up an `index.ts` file.
9+
If you didn’t use a template or skipped the language selection during setup, you can run `juno functions init` at the root of your project. This command configures your project with the appropriate setup based on your language of choice. For Rust, it includes a `Cargo.toml` and a `lib.rs` file. For TypeScript, it sets up an `index.ts` file.
1010

1111
---
1212

@@ -143,7 +143,7 @@ A quick reference for the most common CLI commands and deployment workflows when
143143

144144
| Command(s) | Scenario |
145145
| ---------------------- | ------------------------------------------------------------------------------------ |
146-
| `juno functions eject` | Initializes your project for writing serverless functions. |
146+
| `juno functions init` | Initializes your project for writing serverless functions. |
147147
| `juno emulator start` | Starts the emulator. |
148148
| `juno functions build` | Compiles your custom Satellite's code. Changes are automatically redeployed locally. |
149149

0 commit comments

Comments
 (0)