0.6.3 • Published 9 months ago

rflib-plugin v0.6.3

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
9 months ago

RFLIB Plugin for Salesforce CLI

NPM Downloads/week License

Plugin for Salesforce CLI to help with the adoption of RFLIB - an open-source logging framework for Salesforce.

Features

  • Automatically instruments Apex classes with RFLIB logging statements
  • Automatically instruments LWC components with RFLIB logging statements
  • Automatically instruments Aura components with RFLIB logging statements

Installation

sf plugins install rflib-plugin

Commands

sf rflib logging apex instrument

Adds RFLIB logging statements to Apex classes.

# Add logging to all classes in a directory
sf rflib logging apex instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging apex instrument --sourcepath force-app --dryrun

# Format modified files with Prettier
sf rflib logging apex instrument --sourcepath force-app --prettier

# Skip instrumenting files where logging is already present
sf rflib logging apex instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing Apex classes to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --prettier (-p): Format modified files using Prettier
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

sf rflib logging lwc instrument

Adds RFLIB logging statements to Lightning Web Components.

# Add logging to all LWC files
sf rflib logging lwc instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging lwc instrument --sourcepath force-app --dryrun

# Add logging and format code
sf rflib logging lwc instrument --sourcepath force-app --prettier

# Skip instrumenting files where logging is already present
sf rflib logging lwc instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing LWC components to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --prettier (-p): Format modified files using Prettier
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

sf rflib logging aura instrument

Adds RFLIB logging statements to Aura Components.

# Add logging to all LWC files
sf rflib logging aura instrument --sourcepath force-app

# Preview changes without modifying files
sf rflib logging aura instrument --sourcepath force-app --dryrun

# Add logging and format code
sf rflib logging aura instrument --sourcepath force-app --prettier

# Skip instrumenting files where logging is already present
sf rflib logging aura instrument --sourcepath force-app --skip-instrumented

Command Options

  • --sourcepath (-s): Directory containing Aura components to instrument
  • --dryrun (-d): Preview changes without modifying files
  • --prettier (-p): Format modified files using Prettier
  • --skip-instrumented: Do not instrument files where RFLIB logging is already present

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

Learn More

0.6.3

9 months ago

0.6.2

9 months ago

0.6.1

9 months ago

0.6.0

10 months ago

0.5.0

10 months ago

0.4.2

10 months ago

0.4.1

10 months ago

0.4.0

10 months ago

0.3.3

10 months ago

0.3.2

10 months ago

0.3.1

10 months ago

0.3.0

10 months ago

0.2.0

10 months ago

0.1.2

10 months ago