Skip to content

Commit d15225d

Browse files
committed
add component for experimental option callouts
1 parent de49a57 commit d15225d

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

.vuepress/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import { defineClientConfig } from 'vuepress/client';
88
import AsciinemaPlayer from './components/AsciinemaPlayer.vue';
99
import BlogPosts from './components/BlogPosts.vue';
10+
import ExperimentalOption from './components/ExperimentalOption.vue';
1011
import JumpToc from './components/JumpToc.vue';
1112
import PrBy from './components/PrBy.vue';
1213
import ReleaseToc from './components/ReleaseToc.vue';
@@ -15,6 +16,7 @@ export default defineClientConfig({
1516
enhance({ app }) {
1617
app.component('AsciinemaPlayer', AsciinemaPlayer);
1718
app.component('BlogPosts', BlogPosts);
19+
app.component('ExperimentalOption', ExperimentalOption);
1820
app.component('JumpToc', JumpToc);
1921
app.component('PrBy', PrBy);
2022
app.component('ReleaseToc', ReleaseToc);
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<template>
2+
<div class="hint-container important">
3+
<p class="hint-container-title">Experimental option</p>
4+
<p>
5+
This feature is behind an experimental option. Run Nushell with
6+
<code>--experimental-option={{ option }}</code> or set before running
7+
Nushell the environment variable to
8+
<code>NU_EXPERIMENTAL_OPTIONS={{ option }}</code
9+
>.
10+
</p>
11+
</div>
12+
</template>
13+
14+
<style scoped>
15+
code {
16+
white-space: nowrap;
17+
}
18+
</style>
19+
20+
<script setup lang="ts">
21+
const { option } = defineProps({
22+
option: {
23+
type: String,
24+
required: true,
25+
},
26+
});
27+
</script>

blog/2026-04-11-nushell_v0_112_0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ $env.config.history.path = "/custom/history.txt" # custom location
186186

187187
### New experimental option `cell-path-types` <JumpToc/> <PrBy :pr="17673" user="blindFS" />
188188

189+
<ExperimentalOption option="cell-path-types"/>
190+
189191
Added a new experimental option named `cell-path-types` which enforces type inferencing on cell path expressions like `{foo: 1}.foo` if enabled. That means the following examples (previously caused runtime errors or ran successfully) will be rejected by the parser:
190192

191193
```nushell

0 commit comments

Comments
 (0)