Skip to content

Commit

Permalink
Only include outputs in toml BBE
Browse files Browse the repository at this point in the history
  • Loading branch information
HindujaB committed Oct 7, 2024
1 parent ff64dff commit 5b2d87d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
7 changes: 0 additions & 7 deletions examples/configurable-variables/configurable_variables.bal
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
import ballerina/io;

// The host of the database server. The default value is `localhost`.
configurable string dbHost = "localhost";

// This specifies that the password must be supplied in a configuration file.
configurable string password = ?;

public function main() {
io:println("host: ", hostName);
io:println("password: ", password);
}
6 changes: 1 addition & 5 deletions examples/configurable-variables/configurable_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ For more information, see [Configure a sample Ballerina service](/learn/configur

::: code configurable_variables.bal :::

To run the example, copy the following content to a file named `Config.toml` in the current directory.

::: code Config.toml :::

::: out configurable_variables.out :::
::: out configurable_variables.out :::
2 changes: 0 additions & 2 deletions examples/configurable-variables/configurable_variables.out
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
$ bal run configurable_variables.bal
host: localhost
password: password

0 comments on commit 5b2d87d

Please sign in to comment.