generated from salesforcecli/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move toolbelt/source:open to plugin-source (#99)
* chore: cmd skeleton * feat: return flexipage app builder url * chore: type declare fx * chore: deprecate require * chore: use previously saved var * chore: clean types export * chore: add tests for getTypeDefinitionByFileName * chore: update command-snapshot.json * chore: use 'open' lib to open urls + fix frontdoor url * chore: add command test * chore: remove dependency on SfdxProject.resolveProjectPathSync * chore: add NUT test * chore: fix output message * chore: return correct type * chore: better type on json collection * chore: use sdr to get file metadata type * chore: stub getTypeDefinitionByFileName * chore: clean command options and messages * chore: clean unused vars * chore: remove unused * chore: no upgrade sdr * chore: clean run method * chore: deprecated check * chore: remove unused stub * chore: get frontdoor from AuthInfo * chore: remove unused * chore: stub for getOrgFrontDoorUrl * chore: remove unwanted print * chore: use getTypeBySuffix from RegistryAccess * chore: fix suffix extraction * chore: just stub fs calls * chore: move restore * chore: better stub * chore: use MetadataResolver to resolve file type * chore: test upgrade + merge * chore: use checkLightningDomain from sfdx-core * chore: remove unused * chore: use checkLightningDomain from sfdx-core * chore: make stubs compatible + code cleanup * chore: restore test * chore: upgrade core * chore: bump command version * chore: bump deps * chore: restore files * fix: extend from sourceCommand Co-authored-by: Steve Hetzel <[email protected]>
- Loading branch information
Showing
10 changed files
with
477 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"description": "edit a Lightning Page with Lightning App Builder\nOpens the specified Lightning Page in Lightning App Builder. Lightning Page files have the suffix .flexipage-meta.xml, and are stored in the flexipages directory. If you specify a different type of file, this command opens your org’s home page.", | ||
"examples": [ | ||
"$ sfdx force:source:open -f path/to/source", | ||
"$ sfdx force:source:open -r -f path/to/source", | ||
"$ sfdx force:source:open -f path/to/source -u [email protected]" | ||
], | ||
"flags": { | ||
"sourcefile": "(required) file to edit", | ||
"urlonly": "generate a navigation URL; don’t launch the editor" | ||
}, | ||
"SourceOpenFileDescription": "file to edit", | ||
"SourceOpenPathDescription": "generate a navigation URL; don’t launch the editor", | ||
"SourceOpenCommandHumanSuccess": "Access org %s as user %s with the following URL: %s", | ||
"SourceOpenCommandTimeoutError": "Timeout error", | ||
"SourceOpenCommandError": "Open failed" | ||
} |
This file contains 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
Oops, something went wrong.