Skip to content

Commit

Permalink
Feat: Adds fir pilot language to match the dashboard when create a fi…
Browse files Browse the repository at this point in the history
…r space (#3114)

* feat: add pilot language to match dashboard when creating fir spaces

* Removed spaces bwtween the parenthesis and the links
  • Loading branch information
justinwilaby authored Dec 3, 2024
1 parent 5bf9c76 commit ca4f120
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions packages/cli/src/commands/spaces/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ export default class Create extends Command {
const dollarAmountHourly = shield ? '$4.17' : '$1.39'
const spaceType = shield ? 'Shield' : 'Standard'

if (generation === 'fir') {
ux.warn(heredoc`
Fir Pilot Features
Fir is currently a pilot service that is subject to the Beta Services Terms
(https://www.salesforce.com/company/legal/) or a written Unified Pilot Agreement
if executed by Customer, and applicable terms in the Product Terms Directory
(https://ptd.salesforce.com/?_ga=2.247987783.1372150065.1709219475-629000709.1639001992).
Use of this pilot or beta service is at the Customer's sole discretion.
Please note that we’re actively developing and adding new features, and not all
existing features are currently available. See the Dev Center
(https://devcenter.heroku.com/articles/generations) for more info.
`)
}

ux.action.start(`Creating space ${color.green(spaceName as string)} in team ${color.cyan(team as string)}`)
const {body: space} = await this.heroku.post<Required<Space>>('/spaces', {
headers: {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/test/unit/commands/spaces/create.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ describe('spaces:create', function () {
'--generation',
firSpace.generation,
])

expect(stderr.output).to.include('Fir is currently a pilot service')
expect(stdout.output).to.eq(heredoc`
=== ${firSpace.name}
Expand Down

0 comments on commit ca4f120

Please sign in to comment.