dash_cli 0.2.0 copy "dash_cli: ^0.2.0" to clipboard
dash_cli: ^0.2.0 copied to clipboard

CLI tool for building dash agents for CommandDash

Use this package as an executable

Install it

You can install the package from the command line:

dart pub global activate dash_cli

Use it

The package has the following executables:

$ dash_cli

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dash_cli

With Flutter:

 $ flutter pub add dash_cli

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dash_cli: ^0.2.0

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:dash_cli/cli_operations/agent_operations.dart';
import 'package:dash_cli/commands/agent/create_agent.dart';
import 'package:dash_cli/commands/agent/publish_agent.dart';
import 'package:dash_cli/commands/auth/auth.dart';
import 'package:dash_cli/commands/auth/login.dart';
import 'package:dash_cli/commands/auth/logout.dart';
import 'package:dash_cli/core/api.dart';
import 'package:dash_cli/core/auth.dart';
import 'package:dash_cli/models/agent_model.dart';
import 'package:dash_cli/models/config.dart';
import 'package:dash_cli/models/pubspec_data.dart';
import 'package:dash_cli/parsers/pubspec_parser.dart';
import 'package:dash_cli/repository/agent_repository.dart';
import 'package:dash_cli/repository/user_repository.dart';
import 'package:dash_cli/template/simple_agent_template.dart';
import 'package:dash_cli/utils/consts.dart';
import 'package:dash_cli/utils/env.dart';
import 'package:dash_cli/utils/helpers.dart';
import 'package:dash_cli/utils/logger.dart';
import 'package:dash_cli/utils/paths/path_utils.dart';
import 'package:dash_cli/utils/spawn_isolate.dart';
import 'package:dash_cli/utils/terminal_commands/run_terminal_command.dart';
import 'package:dash_cli/utils/version.dart';