Skip to content

Commit 897a2dd

Browse files
authored
Rename tool pub name to dartfn (#147)
* Rerun builder * Bump dartfn to 0.3.1
1 parent 129302d commit 897a2dd

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

functions_framework_tool/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.3.1
4+
5+
- Renamed the package to `dartfn` so `dart pub global activate dartfn` works.
6+
37
## 0.3.0
48

59
The first version is `0.3.0` to align with the rest of published Functions

functions_framework_tool/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Functions Framework Tool package for Dart
1+
# Functions Framework Tool package for Dart: dartfn
22

33
This package is intended to support tools for working with Functions Framework
44
projects.
@@ -96,7 +96,7 @@ dartfn version
9696
Output
9797

9898
```text
99-
Google Functions Framework for Dart CLI (dartfn) version: 0.3.0
99+
Google Functions Framework for Dart CLI (dartfn) version: 0.3.1
100100
```
101101

102102
If a newer version is available, the command will inform you. Example:
@@ -105,11 +105,11 @@ If a newer version is available, the command will inform you. Example:
105105
dartfn version
106106
```
107107

108-
Output
108+
Output (hypothetical update available)
109109

110110
```text
111-
Google Functions Framework for Dart CLI (dartfn) version: 0.2.0
112-
Version 0.3.0 is available! To update to this version, run: `pub global activate dartfn`.
111+
Google Functions Framework for Dart CLI (dartfn) version: 0.3.1
112+
Version 0.3.2 is available! To update to this version, run: `pub global activate dartfn`.
113113
```
114114

115115
If you just want the version number, use the `-s` or `--short` option:
@@ -121,5 +121,6 @@ dartfn version --short
121121
Output
122122

123123
```text
124-
0.3.0
124+
0.3.1
125125
```
126+

functions_framework_tool/bin/dartfn.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import 'dart:io' as io;
1818
import 'package:io/io.dart' show ExitCode;
1919

2020
import 'package:args/command_runner.dart';
21-
import 'package:functions_framework_tool/functions_framework_tool.dart' as tool;
22-
import 'package:functions_framework_tool/src/cli/app.dart' as cli;
21+
import 'package:dartfn/functions_framework_tool.dart' as tool;
22+
import 'package:dartfn/src/cli/app.dart' as cli;
2323

2424
// Initialize the CLI app with a list of generators and a terminal printer.
2525
// Process args and/or execute a subcommand. Always exit immediately when the

functions_framework_tool/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ targets:
99
- templates/**
1010
- tool/**
1111
builders:
12-
functions_framework_tool:
12+
dartfn:
1313
generate_for:
1414
- lib/src/generators/*.dart
1515
enabled: true
1616

1717
builders:
18-
functions_framework_tool:
18+
dartfn:
1919
import: "tool/builder/builder.dart"
2020
builder_factories: ["builder"]
2121
build_extensions: {".dart": [".g.dart"]}

functions_framework_tool/lib/src/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

functions_framework_tool/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: functions_framework_tool
1+
name: dartfn
22
description: >
33
A tools package for managing FaaS (Function as a service) portable Dart functions projects
44
# After changing the version, run `pub run build_runner build`.
5-
version: 0.3.0
5+
version: 0.3.1
66
homepage: https://github.com/GoogleCloudPlatform/functions-framework-dart
77

88
environment:

0 commit comments

Comments
 (0)