Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/go_emit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/py_emit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/ts_emit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/go_emit.iced
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ exports.GoEmitter = class GoEmitter extends BaseEmitter
@output "}"

emit_preface : (infiles, json, {types_only} = {}) ->
@output "// Auto-generated to Go #{if types_only then 'types' else 'types and interfaces'} using #{pkg.name} v#{pkg.version} (#{pkg.homepage})"
@output "// Code generated to Go #{if types_only then 'types' else 'types and interfaces'} using #{pkg.name} v#{pkg.version} (#{pkg.homepage}). DO NOT EDIT."
if infiles.length == 1
@output "// Input file: #{path_lib.relative(process.cwd(), infiles[0])}"
else
Expand Down
4 changes: 2 additions & 2 deletions src/go_emit.test.iced
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe 'GoEmitter', () ->
code = emitter._code.join "\n"

expect(code).toBe("""
// Auto-generated to Go types and interfaces using avdl-compiler v#{pkg.version} (https://github.com/keybase/node-avdl-compiler)
// Code generated to Go types and interfaces using avdl-compiler v#{pkg.version} (https://github.com/keybase/node-avdl-compiler). DO NOT EDIT.
// Input file: my_test_file.avdl

package chat1\n
Expand All @@ -25,7 +25,7 @@ describe 'GoEmitter', () ->
code = emitter._code.join "\n"

expect(code).toBe("""
// Auto-generated to Go types using avdl-compiler v#{pkg.version} (https://github.com/keybase/node-avdl-compiler)
// Code generated to Go types using avdl-compiler v#{pkg.version} (https://github.com/keybase/node-avdl-compiler). DO NOT EDIT.
// Input file: my_test_file.avdl

package chat1\n
Expand Down
2 changes: 1 addition & 1 deletion src/py_emit.iced
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ exports.PythonEmitter = class PythonEmitter extends BaseEmitter
emit_preface : (infiles, {namespace}) ->
@output '"""' + namespace
@output ""
@output "Auto-generated to Python types by #{pkg.name} v#{pkg.version} (#{pkg.homepage})"
@output "Code generated to Python types by #{pkg.name} v#{pkg.version} (#{pkg.homepage}). DO NOT EDIT."
@output "Input files:"
for infile in infiles
@output " - #{path_lib.relative(process.cwd(), infile)}"
Expand Down
2 changes: 1 addition & 1 deletion src/py_emit.test.iced
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe "PythonEmitter", () ->
expect(code).toBe("""
\"\"\"chat1

Auto-generated to Python types by #{pkg.name} v#{pkg.version} (#{pkg.homepage})
Code generated to Python types by #{pkg.name} v#{pkg.version} (#{pkg.homepage}). DO NOT EDIT.
Input files:
- my_test_file.avdl
\"\"\"\n
Expand Down
2 changes: 1 addition & 1 deletion src/ts_emit.iced
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports.TypescriptEmitter = class TypescriptEmitter extends BaseEmitter
for line in doc.split /\n/
@output " * " + line.replace /^\s$/, ''
@output " *"
@output " * Auto-generated to TypeScript types by #{pkg.name} v#{pkg.version} (#{pkg.homepage})"
@output " * Code generated to TypeScript types by #{pkg.name} v#{pkg.version} (#{pkg.homepage}). DO NOT EDIT."
@output " * Input files:"
for infile in infiles
@output " * - #{path_lib.relative(process.cwd(), infile)}"
Expand Down
2 changes: 1 addition & 1 deletion src/ts_emit.test.iced
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe "TypescriptEmitter", () ->
/*
* chat1
*
* Auto-generated to TypeScript types by #{pkg.name} v#{pkg.version} (#{pkg.homepage})
* Code generated to TypeScript types by #{pkg.name} v#{pkg.version} (#{pkg.homepage}). DO NOT EDIT.
* Input files:
* - my_test_file.avdl
*/\n
Expand Down
4 changes: 2 additions & 2 deletions test/files/sample.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/files/sample.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""sample.1

Auto-generated to Python types by avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler)
Code generated to Python types by avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler). DO NOT EDIT.
Input files:
- test/avdl/sample.avdl
- avdl/sample.avdl
"""

from dataclasses import dataclass, field
Expand Down
4 changes: 2 additions & 2 deletions test/files/sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
* sample.1
* SampleInterface protocol is a sample among samples.
*
* Auto-generated to TypeScript types by avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler)
* Code generated to TypeScript types by avdl-compiler v1.4.10 (https://github.com/keybase/node-avdl-compiler). DO NOT EDIT.
* Input files:
* - test/avdl/sample.avdl
* - avdl/sample.avdl
*/

import * as keybase1 from 'github.com/keybase/client/go/protocol/keybase1'
Expand Down
Loading