at_repl 2.0.0+1
at_repl: ^2.0.0+1 copied to clipboard
A command line tool that interacts with the at_platform. Uses some custom functions as well as protocol verbs.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate at_repl
Use it
The package has the following executables:
$ at_repl
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add at_repl
With Flutter:
$ flutter pub add at_repl
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
at_repl: ^2.0.0+1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:at_repl/constants.dart';
import 'package:at_repl/features/delete.dart';
import 'package:at_repl/features/get.dart';
import 'package:at_repl/features/help.dart';
import 'package:at_repl/features/inspect_keys.dart';
import 'package:at_repl/features/inspect_notifications.dart';
import 'package:at_repl/features/monitor.dart';
import 'package:at_repl/features/put.dart';
import 'package:at_repl/features/scan.dart';
import 'package:at_repl/interactive_session.dart';
import 'package:at_repl/repl.dart';
import 'package:at_repl/repl_exception.dart';
import 'package:at_repl/repl_mode.dart';
import 'package:at_repl/version.dart';