Skip to content

Commit

Permalink
Fix env bug dev/main
Browse files Browse the repository at this point in the history
  • Loading branch information
iAkashPattnaik authored Nov 10, 2021
2 parents 650bb77 + 5e8c34c commit fe9daf9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ RUN ./ultroid init
RUN ./ultroid env.create new

# Set the Variables in [.env] file
RUN ./ultroid env.set API_ID $apiId
RUN ./ultroid env.set API_HASH $apiHash
RUN ./ultroid env.set SESSION $session
RUN ./ultroid env.set REDIS_URI $redisUri
RUN ./ultroid env.set REDIS_PASSWORD $redisPassword
RUN ./ultroid env.API_ID $apiId
RUN ./ultroid env.API_HASH $apiHash
RUN ./ultroid env.SESSION $session
RUN ./ultroid env.REDIS_URI $redisUri
RUN ./ultroid env.REDIS_PASSWORD $redisPassword

# Print the versions
RUN ./ultroid version
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This is the best command so far.
This will act as a bridge between `root://TeamUltrod/.env` and the cli.

### Various methods -
- `ultroid env.set <key> <value>` - Append this set of data to [`root://TeamUltrod/.env`]
- `ultroid env.<key> <value>` - Append this set of data to [`root://TeamUltrod/.env`]
- `ultroid env.get all` - Print all the values of [`root://TeamUltrod/.env`]
- `ultroid env.create new` - Create a new [`.env`] file

Expand Down
1 change: 0 additions & 1 deletion lib/env.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ void dotEnvController(List<String> cliArguments) {
});
break;
default:
print(['ultroid', cliArguments[0], cliArguments[1]]);
dotEnv.getDotEnv();
dotEnv.set(cliArguments[0].split('.')[1], cliArguments[1]);
dotEnv.saveDotEnv();
Expand Down

0 comments on commit fe9daf9

Please sign in to comment.