AuthInstallCommand class
dox auth:install. dox add auth runs it. It sets up auth with access
tokens in an app that has the ORM: the config with an api guard, the
provider and the access tokens table migration.
It never overwrites a file, so it is safe to run twice.
Constructors
- AuthInstallCommand({Directory? root, ProcessRunner? runner})
-
rootis the app folder (the current folder by default).runnerrunsdart, tests pass a fake one.
Properties
- description → String
-
one line for
dox helpno setter - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
the name after
dox, likequeue:tableno setter - root → Directory?
-
final
- runner → ProcessRunner?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → String
-
how to call it, like
make:report <name>. Shown bydox help. The default is name.no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
List< String> args) → Future<void> -
run the command.
argsare the words after the name. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
authConfig(
String app) → String -
lib/config/auth.dart: oneapiguard with access tokens -
authProvider(
String app) → String -
lib/providers/auth_provider.dart: gives the config to dox_auth